public static void main(String[] args) { while (go != true || finished != true) { System.out.println("Welcome to your 314 iCal!"); System.out.println("What would you like to do?"); System.out.println("1. Create new Event"); System.out.println("2. View calendar"); System.out.println("3. Quit"); String selection = userInput.nextLine(); switch (selection) { case "1": makeEvent(); go = true; break; case "2": viewCalendar(); go = true; break; case "3": createICS(); go = true; finished = true; break; default: System.err.println("Please choose a valid option"); } } userInput.close(); System.out.println("Thank you for using iCal! Goodbye!"); }