Online Java Compiler By
JavaTpoint.com
public class JavaCharactergetNumericValueExample2 { public static void main(String[] args) { int obj1 = 88, obj2 = 0x0f600; int a1 = Character.getNumericValue(obj1); int b2 = Character.getNumericValue(obj2); String str1 = "Numeric value for code point obj1 is " + a1; String str2 = "Numeric value for code point obj2 is " + b2; // Print a1 and i2 System.out.println( str1 ); System.out.println( str2 ); } }
Output