2012年12月15日 - 首先要判断是否是汉字. public static int getChineseCount(String s) throws Exception{//获得汉字的长度. char c;. int chineseCount=0;. if(!
jingyan.baidu.com