fork download
  1.  
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. class Demo {
  8. public static void main(String[] args) {
  9. int x = 10;
  10. int y = 20;
  11. System.out.println("x == y? " + (x == y));
  12. System.out.println("x != y? " + (x != y));
  13. System.out.println("x > y? " + (x > y));
  14. System.out.println("x >= y? " + (x >= y));
  15. System.out.println("x < y? " + (x < y));
  16. System.out.println("x <= y? " + (x <= y));
  17. }
  18. }
Success #stdin #stdout 0.05s 4386816KB
stdin
Standard input is empty
stdout
x == y? false
x != y? true
x > y? false
x >= y? false
x < y? true
x <= y? true