Latest web development tutorials

Java isUpperCase () method

Java Character class Java Character class


isUpperCase () method is used to determine the specified character is an uppercase letter.

grammar

boolean isUpperCase(char ch)

parameter

  • ch - the character to be tested.

return value

If the character is uppercase, it returns true; otherwise false.

Examples

public class Test {

	public static void main(String args[]) {
		System.out.println( Character.isUpperCase('c'));
		System.out.println( Character.isUpperCase('C'));
	}
}

The above program execution results:

false
true

Java Character class Java Character class