Integer a = new Integer(1);
Integer b = new Integer(1);
System.out.println(a == b); // #=> false
Integer c = 127;
Integer d = 127;
System.out.println(c == d); // #=> true
c = 128;
d = 128;
System.out.println(c == d); // #=> false
Recommended Posts