Online Java Compiler By
JavaTpoint.com
public class JavaCharacterIsLowerCaseExample1 { public static void main(String[] args) { // Create four char primitives codePoint1, codePoint2, codePoint3 and codePoint4. int codePoint1; int codePoint2; int codePoint3; int codePoint4; // Assign the values to codePoint1, codePoint2, codePoint3 and codePoint4. codePoint1 = 77; codePoint2 = 116; codePoint3= 198; codePoint4 = 102; // Create four boolean primitives b1, b2, b3 and b4. boolean b1, b2, b3,b4; // Check whether the codePoint1, codePoint2, codePoint3 and codePoint4 are letters or digits or not and assign the results to b1, b2, b3 and b4. b1 = Character.isLowerCase(codePoint1); b2 = Character.isLowerCase(codePoint2); b3 = Character.isLowerCase(codePoint3); b4 = Character.isLowerCase(codePoint4); String str1 = "The first codePoint '"+codePoint1 + "' is in lowercase: " + b1; String str2 = "The second codePoint '"+codePoint2 + "' is in lowercase: " + b2; String str3 = "The third codePoint '"+codePoint3 + "' is in lowercase: " + b3; String str4 = "The fourth codePoint '"+codePoint4 + "' is in lowercase: " + b4; // Print the values of str1, str2, str3 and str4. System.out.println(str1); System.out.println(str2); System.out.println(str3); System.out.println(str4); } }
Output