Lower upper problem

import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
String str=sc.next();
char ch;
Ch=str.charAt(0);

if(ch>=97 && ch<=122){
	System.out.println(str.toLowerCase());
}
else if(ch>=65 && ch<=97){
	System.out.println(str.toUpperCase());
}
else{
	System.out.println("Invalid");
}
}

}

what s wrong with my code can u pls give me some hint

here i replaced numbers with their respective charecters a,z,A,Z but still iam gettitng error

sry my bad we need to print lower case and upper case not to convert them to lower and upper case

here i did not followed case sensitive by mistake i have taken Ch intead of ch

@niharikareddykeesara_139be65b4266e2f2 sorry for the late reply. If you want to get faster reply you can also ask your doubt on whatsapp group of your course. But before that you need to tell me your whatsapp Group name of your course. (Exactly).

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.