Trusted answers to developer questions

What is Character.isLowerCase() in Java?

Get Started With Data Science

Learn the fundamentals of Data Science with this free course. Future-proof your career by adding Data Science skills to your toolkit — or prepare to land a job in AI, Machine Learning, or Data Analysis.

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
Did you find this helpful?