Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {
    public static void main(String[] args) {
        int cp1 = 0x0033, cp2 = 0x006e;

        int i1 = Character.getType(cp1);
        int i2 = Character.getType(cp2);

        // value 9 represents DECIMAL_DIGIT_NUMBER
        String str1 = "Category of cp1 is " + i1;
        //value 2 represents LOWERCASE_LETTER
        String str2 = "Category of cp2 is " + i2;

        // print i1, i2 values
        System.out.println(str1);
        System.out.println(str2);
    }
}