问答详情
源自: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

呃,这个代码那错了


提问者:qq_不问过往_0 2018-02-04 14:49

个回答

  • 慕仔0066012
    2018-02-04 15:03:26
    已采纳

    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 )+"未通过";

    //下划线这个括号是中文的,要用英文的

    }

    }