title: How to use \n in junction with a printed string literal?
body: <p>I have to print a few lines of code using only string literals, escape sequences, and <code>System.out.print</code>. I am not allowed to use <code>System.out.println</code> or any other new line code except for <code>\n</code>. That said, how do I use <code>\n</code> in junction with printed string literals? Every time I try the following code:</p>
  
  <pre><code>System.out.print(row01\n);
  </code></pre>
  
  <p>bluej says <code>"illegal character: '\' "</code>. So how do I use <code>\n</code> in a printed statement without using quotes? I don't want to literally print <code>"row01"</code>, <code>row01</code> holds a string value. Again, I <em>have to use</em> <code>\n</code>. I'm not looking for a workaround.</p>