Let's say I wanted to print 5 lines. Which is the best method (for performance and readability).
System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.println();
or
System.out.println("\n\n\n\n");
Is it a matter of preference or is one better than the other. It seems like it would save a lot of time using the second method.
The 2nd one is definitely less code, performance wise you might not see a difference but the latter may be faster as it is only 1 call but it would be negligible.