![]() |
VOOZH | about |
From '\u0030' to '\u0039' : ISO-LATIN-1 digits ('0' through '9') From '\u0660' to '\u0669' : Arabic-Indic digits From '\u06F0' to '\u06F9' : Extended Arabic-Indic digits From '\u0966' to '\u096F' : Devanagari digits From '\uFF10' to '\uFF19' : Fullwidth digitsApart from the above mentioned ranges, many other character ranges contain digits as well. Syntax:
public static boolean isDigit(char ch)Parameter: This method accepts character parameter ch as an argument, which is to be tested. Return value:This method returns a boolean value. It returns True if ch is digit, else False. Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the isDigit(int) method. Below programs illustrate the above method: Program 1:
A is a digit -> false 4 is a digit -> true
Digit found at : 4th position. Digit not present.
From '\u0030' to '\u0039' : ISO-LATIN-1 digits ('0' through '9') From '\u0660' to '\u0669' : Arabic-Indic digits From '\u06F0' to '\u06F9' : Extended Arabic-Indic digits From '\u0966' to '\u096F' : Devanagari digits From '\uFF10' to '\uFF19' : Fullwidth digitsApart from the above mentioned ranges, many other character ranges contain digits as well. Syntax:
public static boolean isDigit(int codePoint)Parameter: This method accepts unicode character parameter codePoint of integer type as an argument, which is to be tested. Return value: This method returns a boolean value. It returns True if the specified character is digit, else it returns False. Below programs illustrate the above method: Program 1:
The codePoint cp1 is a digit -> true The codePoint cp2 is a digit -> false
The codePoint cp1 is a digit -> false The codePoint cp2 is a digit -> true