fork download
  1. import java.io.*;
  2.  
  3. class Ideone
  4. {
  5. public static void main (String[] args)
  6. {
  7. Integer a = 3;
  8. Integer b = 3;
  9.  
  10. Integer c = 1234;
  11. Integer d = 1234;
  12.  
  13. System.out.println(a == b);
  14. System.out.println(c == d);
  15. }
  16. }
Success #stdin #stdout 0.09s 46924KB
stdin
Standard input is empty
stdout
true
false