To skip a line in Java strings, use the
\n
character.You can use this special character to insert a new line inside Java strings.
For example this:
System.out.println("line number one\nthen skip a line\n\nlast line");
Will print:
first line
second line
third line