Write a Java console program that displays a simple text-based menu in the console.
The menu should:
Display a text menu with three options.
Prompt the user to select one of the menu options.
Use multiple if-else
statements to display a message that relates to the selected option.
The following code can be used to read input from the console:
Scanner scanner = new Scanner(System.in); // this will read an integer int i = scanner.nextInt(); // this will read a string String s = scanner.nextLine();