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:

  1. 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.
  2. In the first choice implement the concept of if-else
  3. In the second choice implement the concept of while loop using break statement
  4. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!