SyntaxFix
Write A Post
Hire A Developer
Questions
The difference is not Java-specific, but platform specific. Historically UNIX-like OSes have used \n as newline character, some other deprecated OSes have used \r and Windows OSes have employed \r\n.
\n
\r
\r\n