Character




The Character class is a wrapper class that holds a char inside.

Examples:


Character ch = new Character('a');


Common Methods:

charValue()                   returns the char inside this object
compareTo(another Character)  compares to another Character
equals(another object)        does it equal another object?


Common Static Methods:
  
Character.isDigit(a char)          is the char a digit?
Character.isLetter(a char)         is it a letter?
Character.isLetterOrDigit(a char)  is it a letter or a digit?
Character.isLowerCase(a char)      is it a lowercase letter?
Character.isSpaceChar(a char)      is it the space character?
Character.isUpperCase(a char)      is it an uppercase letter?
Character.isWhiteSpace(a char)     is it white space? (space, tab, or return)

Character.toLowerCase(a char)      returns the lower case of the char or the given char
Character.toUpperCase(a char)      returns the upper case of the char or the given char