fork download
  1. class Test {
  2.  
  3. public static void main (String[] args) {
  4.  
  5. boolean a = true;
  6. boolean b = true;
  7. boolean c = false;
  8.  
  9. System.out.println(a || b && c);
  10. System.out.println((a || b) && c);
  11. System.out.println(a || (b && c));
  12. }
  13. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
true
false
true