I'm reading Effective Java and it uses %n for the newline character everywhere. I have used \n rather successfully for newline in Java programs.
%n
\n
Which is the 'correct' one? What's wrong with \n ? Why did Java change this C convention?