问答详情
源自:3-5 Java中的逻辑运算符

为啥运行不了呢???

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((C ^ d) + "通过");

}

}


提问者:qq_无_45 2017-03-14 20:05

个回答

  • 慕粉203834663
    2017-03-14 20:14:56
    已采纳

    看看是不是C要改为小写,分号要在英文输入法输入。

  • 自嘲的微笑
    2017-03-14 20:10:32

     System.out.println((c^ d) + " 通过");

    写成大写了

  • qq_觞_3
    2017-03-14 20:07:33

    c大小写