How do I get a platform-dependent newline in Java? I can’t use \"\\n\" everywhere.
\"\\n\"
This is also possible: String.format("%n").
String.format("%n")
Or String.format("%n").intern() to save some bytes.
String.format("%n").intern()