isLetter public static boolean isLetter(char ch) Determines if the specified character is a letter. A character is considered to be a letter if its general category type, provided by Character.getType(ch), is any of the following: UPPERCASE_LETTER LOWERCASE_LETTER TITLECASE_LETTER MODIFIER_LETTER OTHER_LETTER Not all letters have case. Many characters are letters but are neither uppercase nor lowercase nor titlecase. Parameters: ch - the character to be tested. Returns: true if the character is a letter; false otherwise.
public static boolean isLetter(char ch)
Determines if the specified character is a letter.
A character is considered to be a letter if its general category type, provided by Character.getType(ch), is any of the following: UPPERCASE_LETTER
LOWERCASE_LETTER
TITLECASE_LETTER
MODIFIER_LETTER
OTHER_LETTER
Not all letters have case. Many characters are letters but are neither uppercase nor lowercase nor titlecase. Parameters:
ch - the character to be tested.
Returns:
true if the character is a letter; false otherwise.
public static boolean isLetter(char ch)判定指定字符是否为字母。 有关包含所有 Unicode 字符的更完整规范,参见 Gosling, Joy, 和 Steele 的书《 The Java Language Specification》。
一个字符被认为是一个字母,当且仅当 Unicode 2.0 标准( Unicode 规范数据文件中的 "Lu","Ll","Lm","Lt" 或 "Lo" 分类)指定它为字母。 注意大部分 ideographic 字符是字母( "Lo" 分类)。 另外注意不是所有的字母都有相应的大小写:许多 Unicode 字符是字母,但是它们既不是大写字符,也不是小写字符和标题字符。
参数:
ch - 测试的字符。
返回值:
如果此字符是字母则返回 true;否则返回 false。