62,614
社区成员
发帖
与我相关
我的任务
分享
try {
String str = "";
int x = Integer.parseInt(str, 36);//1 后面的数字可以是2到36之间
int y = Integer.parseInt(str);//2
int z = new Integer(str).intValue();//3
} catch (java.lang.NumberFormatException ex) {
ex.printStackTrace();
}