is Chinese Letter - Java Internationalization

Java examples for Internationalization:Chinese

Description

is Chinese Letter

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        char ch = 'a';
        System.out.println(isChineseLetter(ch));
    }//from  w  w w . ja  va 2 s.  com

    public static boolean isChineseLetter(char ch) {
        if (ch >= 0x4E00 && ch <= 0x9FA5)
            return true;
        return false;
    }
}

Related Tutorials