parseInt(String) to convert a string to a
int primitive, or use valueOf(String)
to convert a string to an Integer object.
Constructs a newly allocated Integer object that
represents the int value indicated by the
String parameter. The string is converted to an
int value in exactly the manner used by the
parseInt method for radix 10.
s | the String to be converted to an Integer. |
NumberFormatException | if the String does not
contain a parsable integer. |
Diagram: Number