JAVA基础区别println——print
1 public class HelloWorld { 2 3 public static void main(String[] args) { 4 System.out.println("输出自动换行"); 5 System.out.println("输出自动换行"); 6 System.out.print("输出不换行+"); 7 System.out.print("输出不换行"); 8 } 9 10 }
当驾孤舟
1 public class HelloWorld { 2 3 public static void main(String[] args) { 4 System.out.println("输出自动换行"); 5 System.out.println("输出自动换行"); 6 System.out.print("输出不换行+"); 7 System.out.print("输出不换行"); 8 } 9 10 }