原:https://juejin.im/post/5c7f3cb25188251b883cada2 int==Integer为什么返回true 先看现象吧 执行下面的代码及输出结果: int a = 1; Integer b = 1; Integer c = new Integer(1); System.out.println(a==b);//true System.out.println(a==c);//true System.out.println(b==c);//false 通常大家对此的…