How do I get a platform-dependent newline in Java? I can’t use \"\\n\" everywhere.
\"\\n\"
You can use
System.getProperty("line.separator");
to get the line separator