How do I get a platform-dependent newline in Java? I can’t use " " everywhere.
" "
Java 7 now has a System.lineSeparator() method.
System.lineSeparator()
2.1m questions
2.1m answers
60 comments
57.0k users