Java examples for Language Basics:String
Convert String to int
public class Main { public static void main(String[] args) { String str = new String("10"); int i = Integer.parseInt(str); System.out.println(i);/*from ww w. j av a2s .c om*/ } }