Online Java Compiler By
JavaTpoint.com
public class JavaCharactergetNameExample3 { public static void main(String[] args) { // Declare the codePoints int codepoint1 = 80; int codepoint2 = 55; int codepoint3 = 110; int codepoint4 = 780; // Get the Unicode name of the specified character codePoint String result1 = Character.getName(codepoint1); String result2 = Character.getName(codepoint2); String result3 = Character.getName(codepoint3); String result4 = Character.getName(codepoint4); // Print the result System.err.println("The first character '" + (char)codepoint1 + "' has the unicode name as: " + result1); System.err.println("The second character '" + (char)codepoint2+ "' has the unicode name as: " + result2); System.err.println("The third character '" + (char)codepoint3+ "' has the unicode name as: " + result3); System.err.println("The fourth character '" + (char)codepoint4+ "' has the unicode name as: " + result4); } }
Output