Online Java Compiler By
JavaTpoint.com
public class JavaChracterisJavaIdentifierPartExample3 { public static void main(String[] args) { // Initialize the codePoints. int codepoint1 = 89; int codepoint2 = 90; int codepoint3 = 110; // Check the results. boolean check1 = Character.isJavaIdentifierPart(codepoint1); boolean check2 = Character.isJavaIdentifierPart(codepoint2); boolean check3 = Character.isJavaIdentifierPart(codepoint3); // print result if (check1) { System.out.print("The first codepoint \'" + codepoint1 + "' is a part of Java identifier.\n"); } else { System.out.print("The first codepoint \'" + codepoint1 + "' is not a part of Java identifier.\n"); } if (check2) { System.out.print("The second codepoint \'" + codepoint2 + "' is a part of Java identifier.\n"); } else { System.out.print("The second codepoint \'" + codepoint2 + "' is not a part of Java identifier.\n"); } if (check3) { System.out.print("The third codepoint \'" + codepoint3 + "' is a part of Java identifier.\n"); } else { System.out.print("The third codepoint \'" + codepoint3 + "' is not a part of Java identifier.\n"); } } }
Output