你的写法有些问题:我一般这样写:
public Boolean isInt(String str){
str=str.trim();
try{
int int_out=Integer.parseInt(str);
}catch(NumberFormatException e){
return false;
}
return true;
}
public Boolean isInt(String str){
str=str.trim();
try{
int int_out=Integer.parseInt(str);
}catch(NumberFormatException e){
return false;
}
return true;
}
你的程序里是否有“catch (Throwable t) ”字样?还有你程序的370--379行是什么内容?
应该是大括号没配对,再查查,yangzi()说的有理。