|
Is Lowercase
The following example shows how to use Character.isLowerCase() API.
|
package com.bethecoder.tutorials.core.character;
public class CharIsLowerCase {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println(Character.isLowerCase('a'));
System.out.println(Character.isLowerCase('z'));
System.out.println(Character.isLowerCase(' '));
System.out.println(Character.isLowerCase('\n'));
System.out.println(Character.isLowerCase('A'));
System.out.println(Character.isLowerCase('9'));
}
}
|
| |
It gives the following output,
true
true
false
false
false
false
|
|