String a = String.valueOf(2); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an int //源代码片段来自云代码http://yuncode.net