Question: 1. Write a Java program to implement the following: Display the menu which consists of list of three choices . User has to select any
1. Write a Java program to implement the following:
- Display the menu which consists of list of three choices.User has to select any one option from the list and the output should be displayed.
- In the first choice implement the concept of if-else
- In the second choice implement the concept of while loop using break statement
- In the third choice implement the concept of for loop
Hint:
a) Use switch statement
b) Display menu should be like this:
*** MENU ***
1. if-else
2. while loop using break
3. for loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
