确定字符的类型
/** nowjava - 时代Java 提供 **/ public class Main { public void m() throws Exception { char ch = 'a'; if (Character.isLetter(ch)) { // true } if (Character.isDigit(ch)) { // false } if (Character.isLowerCase(ch)) { // true } if (Character.isUpperCase(ch)) { // false } // See Character for more methods. } }