Java: String containing 2 decimal to int/double/anything
<p>Silly question but couldn't find the right answer on Google (or didn't know what to search :)</p>

<p>I have a string containing this number: 3.0.1
How can I convert it to an Int/double/float/whatever in order to check if it's bigger/smaller/equal to...</p>

<p>I don't mind cutting it to get only the first number (3).</p>

<p>Thanks in advance,
Lior</p>
