大神幫忙看下!
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&&c)+"未通過");
? ? System.out.println((d^c)+"通過");
? ??
? ??
? ??
}
}
2018-10-31
2018-10-27
老弟,你第八行的 | | 錯了,這是符號,不是字母
2018-10-26
第9行不是!a嗎 你寫了a&&c? 第10個是c^d 不過意思應該一樣把