How do I get a platform-dependent newline in Java? I can’t use \"\\n\" everywhere.
\"\\n\"
If you're trying to write a newline to a file, you could simply use BufferedWriter's newLine() method.