public static int getValue(char character){
return character;//<-- unicode value is being returned, e.g. char 0 -> int 48
// char ranges from 0 - 65535
}
From JSL:
5.1.4. Widening and Narrowing Primitive Conversion
The following conversion combines both widening and narrowing
primitive conversions:
byte to char
First, the byte is converted to an int via widening primitive
conversion (§5.1.2), and then the resulting int is converted to a char
by narrowing primitive conversion (§5.1.3).
see more: