For conversion to int there is Integer.parseInt, but there appears to
be no directly corresponding function for floats and doubles.
Instead you have to convert first to Float or Double, then to
float or double, if you get my meaning.
be no directly corresponding function for floats and doubles.
Instead you have to convert first to Float or Double, then to
float or double, if you get my meaning.
- relates to
-
JDK-6463998 Undocumented NullPointerException from Float.parseFloat and Double.parseDouble
-
- Resolved
-