title: Java 1.4.2's replace() takes in chars only, how can I get a char value of \n and \r\n carriage returns?
body: <p>Java 1.4.2's <code>replace()</code> takes in chars only. How can I get a char value of \n and \r\n carriage returns?</p>
  
  <pre><code>\n = Unix carriage return 
  \r\n = Windows carriage return
  </code></pre>