The isUpperCase()
function returns true
if the character sent as a parameter is uppercase
; otherwise, it returns false
.
Figure 1 shows a visual representation of the isUpperCase()
function.
boolean isUpperCase(char character)
The isUpperCase()
function takes the character as a parameter.
The isUpperCase()
function returns true
if the character sent as a parameter is uppercase
; otherwise, it returns false
.
class JAVA {public static void main( String args[] ) {//uppercase characterSystem.out.println("Character.isUpperCase('E'):");System.out.println(Character.isUpperCase('E'));//lowercase characterSystem.out.println("Character.isUpperCase('e'):");System.out.println(Character.isUpperCase('e'));}}