Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

java
lowercase
communitycreator

What is Character.isLowerCase() in Java?

harris910

The isLowerCase() function returns true if the character sent as a parameter is lowercase; otherwise, it returns false.

Figure 1 shows a visual representation of the isLowerCase() function.

Figure 1: Visual representation of isLowerCase() function

Syntax

boolean isLowerCase(char character)

Parameter

The isLowerCase() function takes the character as a parameter.

Return value

The isLowerCase() function returns true if the character sent as a parameter is lowercase; otherwise, it returns false.

Code

class JAVA {
    public static void main( String args[] ) {
        //uppercase character
        System.out.println("Character.isLowerCase('E'):");
        System.out.println(Character.isLowerCase('E'));

        //lowercase character
        System.out.println("Character.isLowerCase('e'):");
        System.out.println(Character.isLowerCase('e'));

        //not a letter
        System.out.println("Character.isLowerCase('6'):");
        System.out.println(Character.isLowerCase('6'));

    }
}

RELATED TAGS

java
lowercase
communitycreator
RELATED COURSES

View all Courses

Keep Exploring