日期:2014-05-20 浏览次数:20975 次
Exception in thread "main" java.lang.NumberFormatException: For input string: "加数"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.valueOf(Unknown Source)
final int a = Integer.valueOf(t[0].getText()).intValue();
final int b = Integer.parseInt(t[2].getText());
String s = "123";
Integer.parseInt(s);// 这里s字符串要是不是数字,会抛异常,和你上面一样