How to print a blank line in Java?

To print a blank line in Java, call System.out.println() method without any parameters.

System.out.println automatically adds a blank line after printing, so calling it without any parameters just prints a blank line:

For example this:

System.out.println("Hello");
System.out.println();
System.out.println("World!");

Will print:

Hello

World!