What are all the escape characters?

escaping, java, string

Solution

You can find the full list 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.

- `\s` Insert a space 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.

Problem

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?

Original source

Related problems