1 public class BooleanTests { 2 3 public static void main(String [] args){ 4 5 boolean b = false; 6 boolean c = true; 7 int i = 0; 8 9 while (c){ 10 System.out.println(true); 11 i++; 12 if (i > 10) break; 13 } 14 15 if (false || false){ 16 System.out.println("both false"); 17 } 18 if (true || false) { 19 System.out.println("at least one true"); 20 } 21 22 } 23 } 24 | Popular Tags |