System.switch(staff){
case == 1:
"A";
break;
case == 2:
"B";
break;
case == 3:
"C";
break;
default:
"No staff code specified";
break;
}
Am trying to use switch case in determining the name of a staff based on code they enter. Is there other way to achieve this even if using nested if-else statements?