Online Java Compiler By
JavaTpoint.com
public class JavaChracterisJavaIdentifierPartExample5 { public static void main(String[] args) { char cp1 = 'A'; char cp2 = 'G'; char cp3 = 'k'; boolean b1 = Character.isJavaIdentifierPart(cp1); boolean b2 = Character.isJavaIdentifierPart(cp2); boolean b3 = Character.isJavaIdentifierPart(cp2); System.out.println("The boolean value for the first codePoint '" + cp1 + "' is given as: "+ b1); System.out.println("The boolean value for the second codePoint '" + cp2 + "' is given as: "+ b2); System.out.println("The boolean value for the third codePoint '" + cp3 + "' is given as: "+ b3); } }
Output