is Chinese by checking char value range - Java java.lang

Java examples for java.lang:char

Description

is Chinese by checking char value range

Demo Code


//package com.java2s;

public class Main {
    public static boolean isChinese(char c) {
        return (c >= 0x4e00 && c <= 0x9fa5);
    }//from   w ww.j  a va2  s  . c o  m
}

Related Tutorials