我这个程序有什么错误,请大虾指出!
class testTry{
public static void main(String args[])
{
Proc(0)
Proc(100)
Proc(1)
}
static viod Proc(int num)
{
try
{
System.out.println("*** 异常处理测试 ***");
System.out.println("num = "+num);
int sum =100/num;
int array[]{0,1,2};
array[num]=sum;
}
catch(ArithmaticException e)
{
System.out.println("被零除:"+e);
catch(Array IndexOfBoundsExeption e)
{
System.out.println("数组越界:"+e);
}
finally
{
System.out.println("End! \ n");
}
}
}