摘要: 结论是,用ArrayList时,出现如下错误: Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 452 at java.util.ArrayList.add(ArrayList.java:352) 改为 阅读全文
posted @ 2016-06-03 17:20 吴玄坤 阅读(5844) 评论(0) 推荐(1) 编辑
摘要: public class Test { public void add(int i) throws NullPointerException{ if(i==0) throw new NullPointerException(); System.out.println("add出现异常"); } pu 阅读全文
posted @ 2016-06-03 14:24 吴玄坤 阅读(146) 评论(0) 推荐(0) 编辑