Java - Character Escape Codes

> Procedural Languages > Java

1 - About

Java provides escape sequences for several non-graphical characters.

All characters can be specified as:

  • a hexidecimal Unicode character (\uxxxx)
  • an octal character (\ddd where the first d is limited to 0-3, and the others 0-7 - same as \u0000-\u00ff).
  \n	New line
  \t	Tab
  \b	Backspace
  \r	Carriage return
  \f	Formfeed
  \\	Backslash
  \'	Single quotation mark
  \"	Double quotation mark
  \d	Octal
  \xd	Hexadecimal
  \ud	Unicode character

3 - Documentation / Reference

Advertising
lang/java/escape.txt · Last modified: 2017/02/12 21:05 by gerardnico