Engineering Full Stack Apps with Java and JavaScript
The Character class is a wrapper class for the char primitive data type. Many of the Character methods are overloaded and can take either a char or a Unicode character. Important Character methods are:
isDigit
Returns true if the character is a digit
isLetter
Returns true if the character is a letter
isLetterOrDigit
Returns true if the character is a letter or a digit
isLowerCase
Returns true if the character is a lower case letter
isSpace
Returns true if the character is a space
isUpperCase
Returns true if the character is an upper case letter
toLowerCase
Returns the lower case equivalent of the character
toUpperCase
Returns the upper case equivalent of the character