String a = String.valueOf(2); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an int//该片段来自于http://www.codesnippet.cn/detail/12122012929.html
来源: http://www.codesnippet.cn/detail/12122012929.html