Java逻辑运算符实例 Java位运算操作符实例 Java赋值运算符实例 Java逻辑运算符实例 public class Test { public static void main(String args[]) { boolean a = true; boolean b = false; System.out.println("a && b = " + (a&&b)); System.out.println("a || b = " + (a||b) ); System.out.println("!(a && b) = " + !(a && b)); } } Java位运算操作符实例 Java赋值运算符实例