Java isUpperCase() Method
The isUpperCase() method is used to determine whether the specified character is an uppercase letter.
Syntax
boolean isUpperCase(char ch)
Parameters
-
ch -- The character to be tested.
Return Value
If the character is uppercase, it returns true; otherwise it returns false.
Example
public class Test {
public static void main(String args[]) {
System.out.println( Character.isUpperCase('c'));
System.out.println( Character.isUpperCase('C'));
}
}
The execution result of the above program is:
false
true
Java Character Class