How do I get a platform-dependent newline in Java? I can’t use \"\\n\" everywhere.
\"\\n\"
Java 7 now has a System.lineSeparator() method.