java examples
Home Java Examples Resources Java Interview Questions
Brainpower SEO

How to know if a character is lowercase?

public class CharacterIsLowerCase
{
    public static void main(String[] args)
    {
        char a = 'a';
        if (Character.isLowerCase(a))
        {
            System.out.println(a + 
                " is a lowercase character.");
        }
    }
}