Java isLetter() 方法

Java 教程 · 2019-02-08 16:57:34

isLetter() 方法用于判断指定字符是否为字母。

语法

boolean isLetter(char ch)

参数

  • ch -- 要测试的字符。

返回值

如果字符为字母,则返回 true;否则返回 false。

实例

public class Test {

    public static void main(String args[]) {
        System.out.println(Character.isLetter('c'));
        System.out.println(Character.isLetter('5'));
    }
}

以上程序执行结果为:

true
false

点击查看所有 Java 教程 文章: https://codercto.com/courses/l/12.html

查看所有标签

Pro Git (Second Edition)

Pro Git (Second Edition)

Scott Chacon、Ben Straub / Apress / 2014-11-9 / USD 59.99

Scott Chacon is a cofounder and the CIO of GitHub and is also the maintainer of the Git homepage ( git-scm.com ) . Scott has presented at dozens of conferences around the world on Git, GitHub and the ......一起来看看 《Pro Git (Second Edition)》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

MD5 加密
MD5 加密

MD5 加密工具

html转js在线工具
html转js在线工具

html转js在线工具