fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Integer a100 = 101;
  10. Integer b100 = 100;
  11. Integer a1000 = 1000;
  12. Integer b1000 = 1001;
  13.  
  14. System.out.println(a100.intValue() > b100.intValue());
  15. System.out.println(a1000.compareTo(b1000) > 0);
  16. }
  17. }
Success #stdin #stdout 0.1s 320576KB
stdin
Standard input is empty
stdout
true
false