Java 1.4 Game Programming (Wordware Game and Graphics Library)
|
|
Unicode characters can be defined using the "\u" character escape sequence, followed by the hexadecimal notation of that character. For example, the hexadecimal notation for the number 65 is 0041, which is (4*16) + 1. So the following code would assign the letter A to the character variable letter.
char letter = '\u0041';
|
|