注册 登录
编程论坛 新人交流区

[求助] 编译时报 not a statement

痛苦的学习 发布于 2007-10-20 10:07, 414 次点击
public boolean check_number(String s)
{
boolean flag = false;
int i = Integer.parseInt(s);
return true;
NumberFormatException numberformatexception;
numberformatexception;
return false;
}


以上是bean 中的一个数字检测函数,javac 时, 报 numberformatexception; not a statement 错,请帮忙.
1 回复
#2
rainyee2007-10-20 10:47
不明白
1