Online Java Compiler By
JavaTpoint.com
public class JavaCharactergetNumericValueExample1 { public static void main(String[] args) { // Initialize a codepoint int codepoint = 110; // Convert codepoint to char char ch = (char) codepoint; // Convert the code point to its numeric value int digit = Character.getNumericValue(codepoint); // Print the result System.err.println("The character '" + ch + "' has a numeric value represented as: " + digit); } }
Output