There are many ways you can do this, but the easiest way is simply use the method Integer.parseInt(). Example:
String s = "123";
int i = Integer.parseInt( s );
For more information on the Integer class, view the
Integer class docs.There's also a little about the Integer class in Just Java 1.2 pages 194 through 196.