LOWER UPPER -doubt in input

I am not able to understand why i am getting this error. I have attached the code
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while(t–>0)
{
String s=sc.next();
char a=s.charAt(0);
int b=a;
if(b>=65 && b<=90)
{
System.out.println(“Uppercase”);
}
else if(b>=97 && b<=122)
{
System.out.println(“lowercase”);
}
else
{
System.out.println(“invalid”);
}
}
}
}

Hi @litoriasiddharth,
actually it is not Uppercase but it is UPPERCASE … Like in output all the alphabets must be capital … And it is Invalid not invalid … ‘i’ must be uppercase in this …

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.