+ 1
What is the difference between print and println
3 Respostas
+ 6
println prints its argument and then changes the line
+ 1
If you really don't like to add 'ln' then you can get use this:
System.out.println("what you want to print");
//Equals to:
System.out.print("what you want to print\n");
+ 1
print continue the same line
println breaks the line.