慕大海
2018-08-15 18:00
public class HelloWorld {
public static void main(String[] args) {
boolean a = true; // a同意
boolean b = false; // b反对
boolean c = false; // c反对
boolean d = true; // d同意
System.out.println((a&&b)+"未通过");
System.out.println((a||d)+"通过");
System.out.println((!a)+"未通过");
System.out.println((a^d)+"通过");
}
}
public class HelloWorld { public static void main(String[] args) { boolean a = true; // a同意 boolean b = false; // b反对 boolean c = false; // c反对 boolean d = true; // d同意 System.out.println((a&&b)+"未通过"); System.out.println((a||d)+"通过"); System.out.println((!a)+"未通过");← System.out.println((a^d)+"通过"); ← }}
最后两个分号错误,应是(;)真是看瞎眼,2333
Java入门第一季(IDEA工具)升级版
1167368 学习 · 18748 问题
相似问题