摘要: String 类 1.返回字符串中字符数(字符串长度)的方法: length() //用法: public class Test{ public static void main(String[] args){ String str = "Hello Java!"; int leng = str.l 阅读全文
posted @ 2020-11-01 16:01 MerdanGh 阅读(146) 评论(0) 推荐(0)
摘要: Character 类 判断该字符是不是一个数字的方法:isDigit(ch) //用法:Character.isDigit(ch) //如果字符ch是一个数字的话返回true,否则返回false public class test{ public static void main(string[] 阅读全文
posted @ 2020-11-01 14:55 MerdanGh 阅读(180) 评论(0) 推荐(0)