程旦 发表于 2012-4-11 19:39 int[] arr = new int[a]; 数组不能接收一个变量来初始化它的长度吧
邓斌 发表于 2012-4-11 19:29 不好意思我错了。回头看了下笔记 ArithmeticException, ArrayIndexOutOfBoundsException
石好强 发表于 2012-4-11 19:48 你都throws Exception了,说明你这程序可能会出现问题,怎么能不捕获处理呢? 要 try{}
尹波 发表于 2012-4-11 19:50 差点被你带进去了,呵呵,后来突然想到这些异常都是已知的,不需要在内部抛。 其实我没问太具体。当我把E ...
常万 发表于 2012-4-11 20:18 class MutiException { public static void main(String[] args)
尹波 发表于 2012-4-11 20:29 哎,考虑不周啊,感谢~