方法一:输入:public class HelloWorld{public static void main(String[] args)再输入: System. out. print(“true,”);System. out.print(“I am a dev,”);System. out . print(“and can program”); 就可以输出“true, I am a dev, and can program.”
方法二:先输入 public class Helloworld {public static void main(String[ ] args) }再输入 System . out . println(“true,I am a dev,and can program”) ;就可以运行并在窗口输出“true, I am a dev, and can program.”
方法三:public class HelloWorld{public static void main(String[] args)再输入: System . out. println(“true,” + “I am a dev,” + “and can program” ) ;就可以运行并在窗口输出“true, I am a dev, and can program.”
打印出“true, I am a dev, and can program.”
最新推荐文章于 2022-02-14 23:36:27 发布