System.out(系统输出)
print方法,它不在输出之后增加换行符。例如,(系统打印)System.out.print(“Hello”)打印“hello”之后不换行,后面的输出紧跟在字母“o”之后。
println方法,输出之后增加换行符。也就是在另起一行。
System.out(系统输出)
print方法,它不在输出之后增加换行符。例如,(系统打印)System.out.print(“Hello”)打印“hello”之后不换行,后面的输出紧跟在字母“o”之后。
println方法,输出之后增加换行符。也就是在另起一行。