fork download
  1. public class Main
  2. {
  3. public static void main (String[] args)
  4. {
  5. Integer a = 1, b = 1;
  6. Integer c = 127, d = 127;
  7. Integer x = 128, y = 128;
  8. System.out.println(a == b);
  9. System.out.println(c == d);
  10. System.out.println(x == y);
  11. }
  12. }
Success #stdin #stdout 0.09s 51052KB
stdin
Standard input is empty
stdout
true
true
false