is char a Chinese character - Android Internationalization

Android examples for Internationalization:Chinese

Description

is char a Chinese character

Demo Code

import android.text.TextUtils;
import java.math.BigDecimal;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main{


    public static boolean isChinese(char a) {
        return String.valueOf(a).matches("[\u4E00-\u9FA5]");
    }/*from  w  w w. j a v a 2 s. c o m*/

}

Related Tutorials