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