Java isDigit() 方法
Java 教程
· 2019-02-08 17:12:31
isDigit() 方法用于判断指定字符是否为数字。
语法
public static boolean isDigit(char ch)
参数
ch -- 要测试的字符。
返回值
如果字符为数字,则返回 true;否则返回 false。
实例
public class Test {
public static void main(String args[]) {
System.out.println(Character.isDigit('c'));
System.out.println(Character.isDigit('5'));
}
}
以上程序执行结果为:
false true
点击查看所有 Java 教程 文章: https://www.codercto.com/courses/l/12.html
RESTful Web Services Cookbook
Subbu Allamaraju / Yahoo Press / 2010-3-11 / USD 39.99
While the REST design philosophy has captured the imagination of web and enterprise developers alike, using this approach to develop real web services is no picnic. This cookbook includes more than 10......一起来看看 《RESTful Web Services Cookbook》 这本书的介绍吧!