![]() |
VOOZH | about |
public static boolean isJavaIdentifierPart(int codePoint)Parameters: The parameter codePoint of Integer datatype refers to the character (Unicode code point) that is to be tested. Return Value: The isJavaIdentifierPart(int codepoint) method of Character class returns true if the character may be part of a Java identifier; false otherwise. Below programs are used to illustrate the Character.isJavaIdentifierPart(int codepoint) method: Program 1:
c1 may be part of a Java identifier is true c2 may be part of a Java identifier is true
c1 may be part of a Java identifier is true c2 may be part of a Java identifier is true
public static boolean isJavaIdentifierPart(char ch)Parameters:The parameter ch is of character datatype and refers to the character that is to be tested. Return Value: The isJavaIdentifierPart(char ch) method of Character class returns true if the character may be part of a Java identifier; false otherwise. Below programs are used to illustrate the use Character.isJavaIdentifierPart(char ch) method: Program 1:
5 may be part of a Java identifier is true % may be part of a Java identifier is false
6 may be part of a Java identifier is true * may be part of a Java identifier is false