java.lang.Character.getType(int codePoint) java.lang.Character.getType(char ch) java.lang.Character.hashCode() java.lang.Character.getType(int codePoint) package com.codingdict; import java.lang.*; public class CharacterDemo { public static void main(String[] args) { // create 2 int primitives cp1, cp2 int cp1, cp2; // assign values to cp1, cp2 cp1 = 0x0034; cp2 = 0x006f; // create 2 int primitives i1, i2 int i1, i2; // assign getType values of cp1, cp2 to i1, i2 i1 = Character.getType(cp1); i2 = Character.getType(cp2); /** * value 9 represents DECIMAL_DIGIT_NUMBER * value 2 represents LOWERCASE_LETTER */ String str1 = "Category of cp1 is " + i1; String str2 = "Category of cp2 is " + i2; // print i1, i2 values System.out.println( str1 ); System.out.println( str2 ); } } java.lang.Character.getType(char ch) java.lang.Character.hashCode()