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