Online Java Compiler By
JavaTpoint.com
public class JavaCharacterIsLowerCaseExample2 { public static void main(String[] args) { // Create two int primitives cp1 and cp2. int cp1, cp2; // Assign the values to cp1 and cp2. cp1 = 0x0045; cp2 = 0x0f89; // Create two boolean primitives b1 and b2. boolean b1, b2; b1 = Character.isLowerCase(cp1); b2 = Character.isLowerCase(cp2); String str1 = "The first character represents as a lowercase character: " + b1; String str2 = "The second character represents as a lowercase character: " + b2; // Print the values of b1 and b2. System.out.println( str1 ); System.out.println( str2 ); } }
Output