Convert a String to int

Use the static method parseInt of the Integer class to convert
a String to an int as below:

Alternatively you can pass a String to the Integer class constructor
and call the intValue-method of the object:

Search for more Java info on this site here:
Custom Search

Any thoughts or questions?