Worked example
System.out.print("Hello"); // no line break
System.out.print("World"); // joins on the same line
System.out.println("!"); // breaks the line after
System.out.println("Bye"); // Bye on its own line
Output is two lines: HelloWorld! then Bye.