Java - isLowerCase() Method
Advertisements
Description
The method determines whether the specified char value is lowercase.
Syntax
boolean isLowerCase(char ch)
Parameters
Here is the detail of parameters −
ch − Primitive character type.
Return Value
- This method returns true, if the passed character is really in lowercase.
Example
Live Demopublic class Test { public static void main(String args[]) { System.out.println(Character.isLowerCase('c')); System.out.println(Character.isLowerCase('C')); System.out.println(Character.isLowerCase('\n')); System.out.println(Character.isLowerCase('\t')); } }
This will produce the following result −
Output
true false false false
java_characters.htm
Advertisements