Back To Java Wrapper Classes Index
//program to convert String to int public class stringtoint { public static void main(String[] args) { String a=new String("12345"); int b; b=Integer.parseInt(a); System.out.println("Integer converted from string is " + b); } }