逻辑运算符
public class Demo09Logic{
public static void main(String[] args){
System.out.println(true && false);
System.out.println(5 < 7 && 11 > 2);
System.out.println("============");
System.out.println(true || true);
System.out.println(true || false);
System.out.println(false || false);
System.out.println("============");
System.out.println(true);
System.out.println(!true);
System.out.println(!false);
System.out.println("============");
int a = 10;
System.out.println(3 > 4 && a < 100);
System.out.println(a);
System.out.println("===========");
int b =20;
System.out.println(3 < 4 || ++b < 100);
System.out.println(b);
}
}