fork download
  1. class A {
  2. public static void main(String args[]) {
  3. boolean cond1=false, cond2=true;
  4. int x=cond1 ? 5 : 10;
  5. int y=cond2 ? 3 : 8;
  6. System.out.println(x + " " + y);
  7. System.out.println(x>y);
  8. }
  9. }
Success #stdin #stdout 0.09s 320576KB
stdin
Standard input is empty
stdout
10 3
true