Java Reference
In-Depth Information
TABLE 4-2
Some Characters of the Unicode Character Set and their Unicode Value as a
Decimal Integer (continued)
Unicode
Value
Unicode
Value
Unicode
Value
Unicode
Value
Character
Character
Character
Character
9
G
Y
q
49
71
89
113
Z
2
H
r
50
72
90
114
51
3
I
a
s
73
115
97
52
4
J
b
t
74
98
116
53
K
c
u
75
99
117
5
54
6
L
d
v
76
100
118
7
M
e
w
55
77
101
119
8
N
f
x
56
78
102
120
9
O
g
y
57
79
103
121
<
P
h
z
60
80
104
122
The first 128 characters of the Unicode character set are described in Appendix C.
Table 4-3 shows how expressions using the Unicode character set are evaluated.
TABLE 4-3
Evaluating Expressions Using Relational Operators and the Unicode (ASCII)
Collating Sequence
Value of the
Expression
Expression
Explanation
The Unicode value of
' '
is
32
, and the Unicode
value of
'a'
is
97
. Because
32 < 97
is
true
,it
follows that
' ' < 'a'
is
true
.
' ' < 'a'
true
The Unicode value of
'R'
is
82
, and the Unicode
value of
'T'
is
84
. Because
82 > 84
is
false
,it
follows that
'R' > 'T'
is
false
.
false
'R' > 'T'
The Unicode value of
'+'
is
43
, and the Unicode
value of
'*'
is
42
. Because
43 < 42
is
false
,it
follows that
'+' < '*'
is
false
.
false
'+' < '*'
The Unicode value of
'6'
is
54
, and the Unicode
value of
'>'
is
62
. Because
54 <= 62
is
true
,it
follows that
'6' <= '>'
is
true
.
'6' <= '>'
true
Search WWH ::
Custom Search