import java.util.Scanner ; public class ChoicePrompter { public static void main(String[] args) { Scanner input = new Scanner(System.in); String[] choices = { "Lookup student details", "Add student", "Delete existing student", "Edit existing student" }; System.out.println("Please choose one of the following options:") ; for (int i=1 ; i<=choices.length ; i=i+1) { System.out.println("(" + i + ") " + choices[i-1]); } int choice ; //Your code here System.out.println("You chose " + choices[choice]); } }.