public static void main(String args[]){
Pattern p=Pattern.compile("^.*[\u4e00-\u9fa5]+.*$");
if(p.matcher("asdfs .sadf sad.sdf,").matches()){
System.out.println("中文");
}else{
System.out.println("非中文");
}
}