Use \r\n
:
String str = "......\r\n";
From the JLS:
\n /* \u000a: linefeed LF */
\r /* \u000d: carriage return CR */
Use \r\n
:
String str = "......\r\n";
From the JLS:
\n /* \u000a: linefeed LF */
\r /* \u000d: carriage return CR */