Java isLowerCase() Method

Java  Character类Java Character Class


The isLowerCase() method is used to determine whether the specified character is a lowercase letter.

Syntax

boolean isLowerCase(char ch)

Parameters

  • ch-- the character to be tested.

Return Value

Returns true if the character is lowercase; otherwise returns false.

Example

public class Test {

    public static void main(String args[]) {
        System.out.println( Character.isLowerCase('c'));
        System.out.println( Character.isLowerCase('C'));
    }
}

The output of the above program is:

true
false

Java  Character类Java Character Class

Other Extensions