/**
* 输入的字符是否是汉字
* @param a char
* @return boolean
*/
public static boolean isChinese(char a) {
int v = (int)a;
return (v >=19968 && v <= 171941);
}
public static boolean containsChinese(String s){
if (null == s || "".equals(s.trim())) return false;
for (int i = 0; i < s.length(); i++) {
if (isChinese(s.charAt(i))) return true;
}
return false;
}