判断字符串是否是中文
?
public static boolean isChinese(String word) {boolean isChinese = false;for (int i = 0; i < word.length(); i++) {if (word.charAt(i) >= 0x0391 && word.charAt(i) <= 0xffe5) {isChinese = true;} else {isChinese = false;break;}}return isChinese;}