In Java, Character.isLowerCase(ch) returns true when the character is lowercase. That includes a to z and lowercase letters of other scripts, such as Greek omega (U+03C9) and German sharp s (U+00DF).
Formally, the general category is LOWERCASE_LETTER; since Java 7, characters with the Unicode Other_Lowercase property (for example some modifier letters) count too. Digits, spaces, and punctuation have no case, so they return false.
A static method of java.lang.Character (Java 1.0+): call it on the class, as in Character.isLowerCase(...); you do not need a Character object. No import is needed, because java.lang is always available. The int codePoint overload was added in Java 5.
Unicode version.
The answer comes from the Unicode Character Database built into your JDK, and each Java release follows a specific Unicode version (Java 8, for example, uses Unicode 6.2). The characters used on this page have had the same properties for many Unicode versions, so the examples print the same result on any current JDK.
Syntax
Pass a char or an int code point.
Java
Character.isLowerCase('g'); // true
Character.isLowerCase('G'); // false
Character.isLowerCase('5'); // false, digits have no case
Character.isLowerCase('\u00DF'); // true, sharp s
Call
What it does
Character.isLowerCase(c)
Is this one character lowercase?
Character.isLowerCase(s.charAt(0))
Does a word start with a lowercase letter?
Character.isLowerCase(c) ? Character.toUpperCase(c) : c
Uppercase only the lowercase characters.
Overloads: isLowerCase(char ch) and isLowerCase(int codePoint). To convert, use toLowerCase() or toUpperCase().
Library declarations
Java
// java.lang.Character
public static boolean isLowerCase(char ch)
public static boolean isLowerCase(int codePoint) // since Java 5
Parameters
Parameter
Description
ch (char)
The character to test.
codePoint (int)
The Unicode code point to test.
Return Value
Return Value
Description
true
The character is lowercase.
false
It is uppercase, titlecase, or has no case at all (digits, spaces, symbols).