How does one convert a String to an int in Java? I have a string which ... int foo = Integer.parseInt("1234");. See the Javadoc for more information.
www.google.com.tw