How do I escape a string in Java?

Posted by Marius on Stack Overflow See other posts from Stack Overflow or by Marius
Published on 2010-03-09T01:48:12Z Indexed on 2010/03/09 1:51 UTC
Read the original article Hit count: 317

Filed under:
|
|

I'm reading a sourcefile in Java, but when I print it (sysout), the escaped characters are no longer escaped. How can I escape characters like \n and \t in a string in Java?

© Stack Overflow or respective owner

Related posts about java

Related posts about string