public static void main(String[] args) {
String str= "asdfa";
String str1="中国人了";
convert(str1);
}
public static String convert(String a)
{
String pattern = "[\\u4e00-\\u9fa5]";
Pattern p = Pattern.compile(pattern);
Matcher m = p.matcher(a);
boolean b = m.find();
if (b) {
System.out.println("yes!");
}else{
System.out.println("no!");
}
return null;
}