为了账号安全,请及时绑定邮箱和手机立即绑定

为什么我编辑器上的的代码是一片,如下图所示。怎么回事啊


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

正在回答

3 回答

右键点击java文件,使用Notepad++打开

0 回复 有任何疑惑可以回复我~

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

0 回复 有任何疑惑可以回复我~
public class HelloWorld { 
    public static void main(String[] args) { 
        boolean a = true; 
          boolean b = false; 
           boolean c = false; 
           boolean d = true; 
           System.out.println((a&&b)+"未通过");
           System.out.println((a||d)+"通过"); 
           System.out.println((!a)+"未通过"); 
           System.out.println((c^d)+"通过");
}
    }
0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

为什么我编辑器上的的代码是一片,如下图所示。怎么回事啊

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号