Character.isDigit(string.charAt(index)) //如果index位置的字符是数字 返回true
Character.isLetter(string.charAt(index)) //如果index位置的字符是字母 返回true
Character.isLetterOrDigit(string.charAt(index)) //如果是字母或数字 返回true
本文共 251 字,大约阅读时间需要 1 分钟。
Character.isDigit(string.charAt(index)) //如果index位置的字符是数字 返回true
Character.isLetter(string.charAt(index)) //如果index位置的字符是字母 返回true
Character.isLetterOrDigit(string.charAt(index)) //如果是字母或数字 返回true
转载于:https://www.cnblogs.com/zhengwangzw/p/9432691.html