再編譯器上面運(yùn)行成功 這里為什么不對(duì)啊 ?
public class HelloWorld {
? ? public static void main(String[] args) {
boolean a = true; // a同意
boolean b = false; // b反對(duì)
boolean c = false; // c反對(duì)
boolean d = true; // d同意
? ? System.out.println((a && b)+" 未通過(guò)");
? ? System.out.println((a || d)+" 通過(guò)");
? ? System.out.println(!a)+" 未通過(guò)");
? ? System.out.println((c ^ d )+" 通過(guò)");
? ??
}
}
2020-02-17
少括號(hào) 知道了