不知道錯在哪里,右邊的屏幕顯示未通過和通過都是????
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||b)+"通過");
? ? System.out.println((!a)+"未通過");
? ? System.out.println((c^d)+"通過"); ? ?
}
}
2016-07-11
把最后3行的右)重打,你的是中文輸入法打的)
2016-07-26
眼神很犀利啊
2016-07-14