How to compare value 3.0.1 with 3.0.2 where these two numeric values are in String ? : <p>I have 3.0.1 and 3.0.2 in string data type java. Now I want to check which value is larger therefore I was converting these two into float using Float.parseFloat(str).</p>

<p>But Its throwing number format exception.</p>

<p>Any Help?</p>

<p>Thanks
Pravin</p>
