我的最精简,哈哈哈哈哈哈

来源:2-5 如何命名Java变量

彳亍白鹭

2019-01-26 10:14

package com.itachi;


public class putout {

public static void main(String[] args)

{

//String a="我爱慕课网",b="www.imooc.com";

//System.out.println(a);

//System.out.println(b);

System.out.println("我爱慕课网\nwww.imooc.com");

}

}


写回答 关注

4回答

  • 伊豆雪
    2019-02-11 13:26:36
    public class HelloWorld{    
    public static void main(String[] args) {		
    String a = "我爱慕课网",b = "www.imooc.com";		
    System.out.println(a+"\n"+b);	
    }
    }


  • 伊豆雪
    2019-02-11 13:25:46

    public class HelloWorld{

        public static void main(String[] args) {

    String a = "我爱慕课网",b = "www.imooc.com";

    System.out.println(a+"\n"+b);

    }

    }



  • 偷庄周的鲲
    2019-02-03 10:56:04

    System.out.println(a + b);


  • 懒二久
    2019-01-27 13:34:41

    package com.itachi;


    public class putout {

    public static void main(String[] args)

    {

    /*String a="我爱慕课网",b="www.imooc.com";

    System.out.println(a);

    System.out.println(b);*/

    System.out.println("我爱慕课网\nwww.imooc.com");

    }

    }


Java入门第一季(IDEA工具)升级版

0基础萌新入门第一课,从Java环境搭建、工具使用、基础语法开始

1163270 学习 · 17551 问题

查看课程

相似问题