What character escape sequences are available in Java?
Created May 14, 2012
John Zukowski Java provides escape sequences for several non-graphical characters. All characters can be specified as a hexidecimal Unicode character (uxxxx) with some as an octal character (ddd where the first d is limited to 0-3, and the others 0-7 - same as u0000-u00ff). The actual character literals are:
- b - backspace
- - tab
- - linefeed
- f - formfeed
- - carriage return
- " - double quote
- - backslash