SyntaxFix
Write A Post
Hire A Developer
Questions
Escape should be done with \, not /.
\
/
So r.append('\n'); or r.append("\n"); will work (StringBuilder has overloaded methods for char and String type).
r.append('\n');
r.append("\n");
StringBuilder
char
String