views:

716

answers:

2

I know some of the escape characters in Java, e.g.

\n : Newline
\r : Carriage return
\t : Tab
\\ : Backslash
...

Is there a complete list somewhere?

+9  A: 

This is in the Java Language Spec

skaffman
So it is :)Backslashes are very hard to get google to search for, you know.Thanks.
izb
But you shouldn't find it too difficult to find them in the language spec...
Tom Hawtin - tackline
+4  A: 

You can find that here.

\t Insert a tab in the text at this point.
\b Insert a backspace in the text at this point.
\n Insert a newline in the text at this point.
\r Insert a carriage return in the text at this point.
\f Insert a formfeed in the text at this point.
\' Insert a single quote character in the text at this point.
\" Insert a double quote character in the text at this point.
\ Insert a backslash character in the text at this point.

rtperson