Check for character in lower case or not.


 

Check for character in lower case or not.

This example check for the character in lowercase or not.

This example check for the character in lowercase or not.

Description:

This tutorial demonstrate the use of Character.isLowerCase() method which checks   whether the value stored in char data-type varible is in lower case or not.

Code:

public class CheckLower {
  public static void main(String[] args) {
    char charVar = 'a';
    if (Character.isLowerCase(charVar)) {
      System.out.println("true");
    else {
      System.out.println("false");
    }
  }
}

Output:

Download this code

Ads