I am trying to create a simple menu for my program that reads user input. Here\'s the code:
public void menu() { String command; System.out.prin
You should use switch case inside the while loop instead of if. The switch case should provide the functionality depending on the input provided by the user.
switch case
while
if