看看Character类的方法吧!static boolean isDigit(char ch) 
         Determines if the specified character is a digit. static boolean isLetter(char ch) 
         Determines if the specified character is a letter. static boolean isLetterOrDigit(char ch) 
         Determines if the specified character is a letter or digit. static boolean isWhitespace(char ch) 
         Determines if the specified character is white space according to Java.