compare
Compares two char values numerically. The value returned is identical to what would be returned by:
Character.valueOf(x).compareTo(Character.valueOf(y))*
Return
the value 0 if x == y; a value less than 0 if x < y; and a value greater than 0 if x > y
Since
1.7
Parameters
x
the first char to compare
y
the second char to compare