title: Is there a Java function which parses escaped characters?
body: <p>I'm looking for a built-in Java functions which for example can convert <code>"\\n"</code> into <code>"\n"</code>.</p>
  
  <p>Something like this:</p>
  
  <pre><code>assert parseFunc("\\n") = "\n"
  </code></pre>
  
  <p>Or do I have to manually search-and-replace all the escaped characters?</p>