Computer Applications
Convert the following switch case into if else if:
switch(x)
{
case 'T' :
case 't' : System.out.print("Teacher"); break;
default : System.out.print("Student");
}
Convert the following switch case into if else if:
switch(x)
{
case 'T' :
case 't' : System.out.print("Teacher"); break;
default : System.out.print("Student");
}