how can I parse "30.0" or "30.00" to Integer?
<p>I using:</p>

<pre><code>String str="300.0";
System.out.println(Integer.parseInt(str));
</code></pre>

<p>return an exception:</p>

<p><em><strong>Exception in thread "main" java.lang.NumberFormatException: For input string: "300.0"</em></strong></p>

<p>How can I parse this String to int?</p>

<p>thanks for help :)</p>
