Character.isDigit

Character.isDigit

Class Overview | Class Members | This Package | All Packages

Syntax
public static boolean isDigit( char ch )
Parameters
ch
the character to be tested.
Returns
true if the character is a digit; false otherwise.
Description
Determines if the specified character is a digit. A character is considered to be a digit if it is not in the range '\u2000' <= ch <= '\u2FFF' and its Unicode name contains the word "DIGIT". For a more complete specification that encompasses all Unicode characters that are defined as digits, see Gosling, Joy, and Steele, The Java Language Specification.

These are the ranges of Unicode characters that are considered digits:
0x0030 through 0x0039ISO-LATIN-1 digits ('0' through '9')
0x0660 through 0x0669Arabic-Indic digits
0x06F0 through 0x06F9Extended Arabic-Indic digits
0x0966 through 0x096FDevanagari digits
0x09E6 through 0x09EFBengali digits
0x0A66 through 0x0A6FGurmukhi digits
0x0AE6 through 0x0AEFGujarati digits
0x0B66 through 0x0B6FOriya digits
0x0BE7 through 0x0BEFTamil digits
0x0C66 through 0x0C6FTelugu digits
0x0CE6 through 0x0CEFKannada digits
0x0D66 through 0x0D6FMalayalam digits
0x0E50 through 0x0E59Thai digits
0x0ED0 through 0x0ED9Lao digits
0x0F20 through 0x0F29Tibetan digits
0xFF10 through 0xFF19Fullwidth digits

See Also
digit, forDigit