Computer Science, asked by monicavishalgupta, 8 months ago

2 poin
Q.No.10 Write a Java
statement to input a character
and also only if condition to
check whether the entered
character is in upper case or
not.
*​

Answers

Answered by a321038
0

Answer:

//after inputting scanner class and writing the function prototype

Scanner kb=new Scanner(System.in);

char a=kb.nextChar();

if(a.isUpperCase==true)

System.out.println("it is in uppercase");

// close parenthesis

Similar questions