while (true)
{
System.out.println("What type of Employee? Enter 'o' for Office " +
"Clerical, 'f' for Factory, or 's' for Saleperson. Enter 'x' to exit." );
String response= inp.nextLine().toLowerCase();
// validate input, do you switch statement, return; on x
}
1
solved Trying to sentinel loop this program [closed]