Integer用==比较时127相等128不相等的原因
for (int i = 0; i < 150; i++) { Integer a = i; Integer b = i; System.out.println(i + " " + (a == b));}部分结果如下:124 true125 true126 true127 true128 false129 false130 false131...