Sorry i didn't have any attempt actually i did not understood Question how to solve i need guidance how to solve it .
If anyone can solve then pls do it.
This is the Question.
Step 1 : at the beginning of your program you need to import Scanner class for getting input from the user .
Step 2 : in your problem, system require two inputs that are =》
1) character type
2) integer type
for doing this , you need to initialize Scanner class I.e.,
char mainMenu=object.next().charAt(0); //reading character from string
int subMenu =object.nextInt(); //reading integer
Step 3 : by using nested Switch statements you can easily find out the solution for your problem.