Here you can find the source of isChinese(String str)
public static boolean isChinese(String str)
//package com.java2s; import java.util.regex.Pattern; public class Main { public static boolean isChinese(String str) { Pattern pattern = Pattern.compile("[\u0391-\uFFE5]+$"); return pattern.matcher(str).matches(); }//from w ww . ja v a 2s . c o m }