title: Remove end of line characters from Java string
body: <p>I have string like this</p>
  
  <pre><code>"hello
  java
  book"
  </code></pre>
  
  <p>I want remove <code>\r</code> and <code>\n</code> from <code>String(hello\r\njava\r\nbook)</code>. I want the result to be <code>"hellojavabook"</code>. How can I do this?</p>