logo

Java IsUpperCase() Method


Show

This method concludes whether the particular char price is uppercase. The Character isUpperCase(char ch) java process establishes if the specific character is an uppercase character. A character is uppercase if its universal category type, offered by Character. getType(ch), is UPPERCASE_LETTER. or it has contributory belongings Other_Uppercase as defined by the Unicode Standard.3

Syntax

boolean isUpperCase(char ch)

Parameters

Here is the detail of parameters −

  • ch − Primitive character type.

Return Value

  • This method returns true if the passed character is really an uppercase.

Example

public class Test {

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

This will produce the following result:

Output

false
true
false
false

Here at Intellinuts, we have created a complete Java tutorial for Beginners to get started in Java.