哪位大神指導(dǎo)下哪里不對(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.tringln((a && b)+"反對(duì)");
??????? System.out.tringln((a || b)+"同意");
??????? System.out.tringln((!a)+"反對(duì)");
??????? System.out.tringln((c ^ d)+"同意");
??? x
?}
}
2019-05-28
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) + "未通過");
? ? ? ? System.out.println((a || b) + "通過");
? ? ? ? System.out.println((!a) + "未通過");
? ? ? ? System.out.println((c^b) + "通過");
? ??
}
}
2019-05-26
System.out.println();
2019-05-23
? ? ? ? System.out.tringln((a && b)+"反對(duì)");少了p
??????? System.out.tringln((a || b)+"同意");少了p? ? ??
? ? ? ? System.out.tringln((!a)+"反對(duì)");少了p??
??????? System.out.tringln((c ^ d)+"同意");少了p??
? ? ? x多了