Online Java Compiler By
JavaTpoint.com
public class JavaCharactergetNameExample2 { public static void main(String[] args) { // Declare the codePoints int codepoint1 = 93; int codepoint2 = 69; // Get the Unicode name of the specified character codePoint String result1 = Character.getName(codepoint1); String result2 = Character.getName(codepoint2); // Print the result System.err.println("The character '" + (char)codepoint1 + "' has the unicode name as: " + result1); System.err.println("The character '" + (char)codepoint2+ "' has the unicode name as: " + result2); } }
Output