Java gives you methods for printing text: System.out.print and System.out.println. The difference is one character, but the output changes.
println adds a newline at the end. Each call starts a new line of output:
System.out.println("Hello");
System.out.println("World");
Output:
Hello
World
print does not add a newline. The next output continues on the same line:
System.out.print("Hello ");
System.out.print("World");
Output:
Hello World
Use println when each piece of output should be on its own line. Use print when you want to build a line piece by piece.