public static int compareTo(Number left,Character right){
  return compareTo(left,Integer.valueOf(right));
}

public static int compareTo ( Number left , Character right ) { return compareTo ( left , Integer . valueOf ( right ) ) ; }
compare a number and a character . the ordinal value of the character is used in the comparison ( the ordinal value is the unicode value which for simple character sets is the ascii value ) .
