Online Java Compiler By
JavaTpoint.com
public class JavaCharactergetDirectionality_Example3 { public static void main(String[] args) { // Initialize the codePoints. int codepoint1 = 36; int codepoint2 = 2001; int codepoint3 = 00; // Convert the codePoint to its numeric value. byte value1 = Character.getDirectionality(codepoint1); byte value2 = Character.getDirectionality(codepoint2); byte value3 = Character.getDirectionality(codepoint3); // Print the result. System.out.println("codePoint: " + codepoint1); System.out.println("Unicode directionality property for the first codePoint is: "+ value1); System.out.println("codePoint: " + codepoint2); System.out.println("Unicode directionality property for the second codePoint is: " + value2); System.out.println("codePoint: " + codepoint3); System.out.println("Unicode directionality property for the second codePoint is: " + value3); } }
Output