就是把类似"1234"的字符串转换成整型?String str="1234";//截取的字符串数字int m=Integer.parseInt(str);//转换后的结果试下,有疑惑欢迎追问。
int a = Integer.valueOf(val);