You are on page 1of 1

Eugene Spencer C.

Lopez 10 LDS
Aaron A. Sirios Computer

Escape Sequences
These are most commonly used in programming languages like Java in order to represent
a sequence of other characters that are difficult to represent.
These are also characters that are preceded by a backslash, a symbol that has a different
meaning for the compiler.

Common Examples:
Escape sequence Description

\t Inserts a tab in the text

\b Inserts a backspace in the text

\n Inserts a newline in the text

\r Inserts a carriage return in the text

\f Inserts a form feed in the text

\ Inserts a single quote character in the text

\ Inserts a double quote character in the text


\\ Inserts a backslash character in the text

Sources:
Escape sequences. (n.d.). In Wikipedia. Retrieved from,

https://en.wikipedia.org/wiki/Escape_character.

(n.d.). Java character class. Retrieved, August 17, 2017, from Tutorials Point website:

https://www.tutorialspoint.com/java/java_characters.htm

You might also like