List<Integer>list =new ArrayList<Integer>(); 表示了List里面放的对象必须是Integer类型的,别的就会报错,所以,可以先Integer it = new Integer();list.add(it);这样就相当于再list里面放入了一个Integer对象https://zhidao.baidu.com/question/236596170.html
关于 java泛型 https://www.cnblogs.com/lwbqqyumidi/p/3837629.html
editor does not contain a main type 1 不在build path中 (不奏效,但是确实有这个可能)
3 据说和jdk版本有关 (这个奏效了!!!) https://liuyun025.iteye.com/blog/1159272
2 (不奏效,这是玄学吧)据说重启就好了https://www.cnblogs.com/byronlee/archive/2011/06/01/2067524.html
int默认值是0,integer默认值是null
==①类型转换再比较(对于基本数据类型) ②IntegerCache内的会相等(-128-127),不在范围内的会新建对象所以不等(对于integer)
===①类型必须相同对于基本数据类型)
equals可重写