异或仍然不太了解
请问在这个代码里我可以这样理解吗?”如果有且只有一个false,则返回false
public class HelloWorld {
public static void main(String[] args) {
boolean a =true;//a 同意
boolean b =false;//b 反对
boolean c =true;//c 同意
boolean d =true;//d 同意
System.out.println((a&&d)+"通过");
System.out.println((!b)+"通过");
System.out.println((a||b)+"通过");
Systen.out.println((b^a)+"未通过");
}
}