日期:2014-05-20  浏览次数:20661 次

怎样把String变量里的数值型字符串转换成数值型
例如
String   a= "232 ";
怎样把a的值转换成int型值?

------解决方案--------------------
String test = "23 ";
int x = Integer.parseInt(test);
System.out.println(x);