How to compare value 3.0.1 with 3.0.2 where these two numeric values are in String ? [closed]

3.0.1 and 3.0.2 are not numbers, they can only be compared as String. That is why you get a number format exception.

Leave a Comment