level 5
785809691
楼主
public int aaa(){
int x=1;
try{
return ++x;
}catch(Exception e){
}finally{
++x;
}
//System.out.println("atguigu");
return x;
}
public static void main(String[] args) {
Test t= new Test();
int y=t.aaa();
System.out.println(y);
}
打印结果是?
这个是老师留的一个作业,但是本人在MyEc中输入后,
Text t= new Text();
这一行是报错的,自己导包后,Text t= new Text();这行是没错了,但是下一行
的aaa()又报错了。
不懂,求教
2018年08月22日 13点08分
1
int x=1;
try{
return ++x;
}catch(Exception e){
}finally{
++x;
}
//System.out.println("atguigu");
return x;
}
public static void main(String[] args) {
Test t= new Test();
int y=t.aaa();
System.out.println(y);
}
打印结果是?
这个是老师留的一个作业,但是本人在MyEc中输入后,
Text t= new Text();
这一行是报错的,自己导包后,Text t= new Text();这行是没错了,但是下一行
的aaa()又报错了。
不懂,求教