判断两个Integer是否相等,使用==会产生的问题分析
Integer a = 128; Integer b = 128; System.out.print(a==b); //false Integer c = 127; Integer d = 127; System.out.print(c==d); //true==对于非基本类型来说,是判断两个引用是否指向同一个对象,或者说指向的地址是不是同一个地址。那为什么数字是128的时候返回false,而数字是...