title: How to parse string containing negative number by j2me api?
body: <p>I have a string which has numbers. I have to parse this string and store these numbers in int, float, etc. Accordingly </p>
  
  <pre><code>String str = "100,2.0,-100,19.99,0";
  </code></pre>
  
  <p>I can do it by <code>Integer.parseInt()</code> and <code>Float.parseFloat()</code> after splitting. But I can't do it for negative number. It throws exception <code>java.lang.NumberFormatException</code>. After searching web I couldn't find any solution for this problem. </p>
  
  <p>So how can I parse a negative integer from string and store into int using j2me api set?</p>