这段代码有eclipse提示两个错误 提示是在那个System.out.println("方法正常结束");和System.out.println("程序正常结束");就是这两句末尾的分号 不知道哪里错了 望高手解答
public class demoexception {
public static void hasexcepton(){
int array[]=new int[10];
try{
array[10]=5;
}
catch(ArrayIndexOutOfBoundsException e){
System.out.println("下标越界");
}
finally{
System.out.println("这是finally块");
}
System.out.println("方法正常结束");
}
public static void main(String argv[])
{
hasexcepton();
System.out.println("程序正常结束");
}}