Scanner scn = new Scanner(System.in);
char in = scn.next().charAt(0);
if(in>= 'a' && in<='z') {
System.out.println("L");
}
else if (in>= 'A' && in<='Z') {
System.out.println("U");
}
else {
System.out.println("I");
}
}
}
Scanner scn = new Scanner(System.in);
char in = scn.next().charAt(0);
if(in>= 'a' && in<='z') {
System.out.println("L");
}
else if (in>= 'A' && in<='Z') {
System.out.println("U");
}
else {
System.out.println("I");
}
}
}
It passes all the test cases for me .check again.
Please mark your doubt as resolved if you are satisfied and you can give ratings too based on my response 