The char data type

The char data type represents a 16-bit unicode character.
To declare a variable of type char and assign it a value, simply put the value within single quotes, like this:

The character data type can also be assigned escape values. An escape value always begins with a backslash.
For example carriage return and linefeed are two characters that can be escaped with:

Escape sequences can also be done by specifying a Unicode escape sequence. Such a sequence starts with \u followed by a four digit hexadecimal value (\uXXXX).

Useful escape sequences:

Search for more Java info on this site here:
Custom Search

Any thoughts or questions?