摘要:
结论是,用ArrayList时,出现如下错误: Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 452 at java.util.ArrayList.add(ArrayList.java:352) 改为 阅读全文
摘要:
public class Test { public void add(int i) throws NullPointerException{ if(i==0) throw new NullPointerException(); System.out.println("add出现异常"); } pu 阅读全文