String ss="dfdsf你好";
int max = ss.replaceAll("[^\u4E00-\u9FA5]", "").length();
int max = ss.replaceAll("[^\u4E00-\u9FA5]", "").length();
System.out.println(ss.replaceAll("[^\u4E00-\u9FA5]", "")+"=="+ss.length()+"=="+max);
for (int i = 0; i < c.length; i++) {
if (c[i] == '\u3000') {
c[i] = ' ';
} else if (c[i] > '\uFF00' && c[i] < '\uFF5F') {
if(c[i] >= '\uff21' && c[i]<='\uff3a'){//大写全角转小写半角
c[i] = (char) (c[i] - 65216);
}else{
c[i] = (char) (c[i] - 65248);
}
} else if(c[i] >= 65 && c[i] <= 90){//大写字母转小写字母
c[i] = (char) (c[i] + 32);
}
}