ArrayList<int> 出错 ArrayList<Integer> a = new ArrayList<Integer>(); 泛型...ArrayList里放的是对象.也就是引用.int并不是对象,是JAVA的8大基本类型.