Character.isLetterOrDigit

Character.isLetterOrDigit

Class Overview | Class Members | This Package | All Packages

Syntax
public static boolean isLetterOrDigit( char ch )
Parameters
ch
the character to be tested.
Returns
true if the character is a letter or digit; false otherwise.
Description
Determines if the specified character is a letter or digit. For a more complete specification that encompasses all Unicode characters, see Gosling, Joy, and Steele, The Java Language Specification.

A character is considered to be a letter if and only if it is specified to be a letter or a digit by the Unicode 2.0 standard (category "Lu", "Ll", "Lt", "Lm", "Lo", or "Nd" in the Unicode specification data file). In other words, isLetterOrDigit is true of a character if and only if either isLetter is true of the character or isDigit is true of the character.

See Also
isDigit, isJavaIdentifierPart, isJavaLetter, isJavaLetterOrDigit, isLetter, isUnicodeIdentifierPart