判断字符是否中文字符、获取字符串中的中文字符

判断字符是不是中文字符、获取字符串中的中文字符
/**
* 判断字符是不是中文字符
* @param a
* @return
*/
public static boolean isChinese(char a){
int i = (int)a;
if(i >= 19968 && i <= 171941){
return true;
}
return false;
}

/**
* 获取字符串中的中文字符
* @param content
* @return
*/
public static String getChinese(String content){
String chinese = "";
for(int index = 0; index < content.length(); index ++){
char j = content.charAt(index);
if(isChinese(j)){
chinese += j;
}
}
return chinese;
}