Question: Java Write a do-while loop that asks the user to select a task from the following menu to continue: 1. Task 1 2. Task 2
Java

Write a do-while loop that asks the user to select a task from the following menu to continue: 1. Task 1 2. Task 2 3. Task 3 0. Exit Read the task selected from the keyboard then write the switch statement: For task 1, display the message "Task 1 process" For task 2, display the message "Task 2 process" For task 3, display the message "Task 3 process" For task 0, display the message "Terminate the program" The do.. while loop ends when users select O from the menu 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
