rendered paste bodywhile(!endChoices) { System.out.println("1. Enter a powerboat"); System.out.println("2. Enter a sailboat"); System.out.println("3. Print Inventory"); System.out.println("4. Print Invoice and close"); System.out.printf("Enter Choice: "); //Validating choice try { choice = scn.nextInt(); while(!goodChoice) { if (choice >= minMenuChoice && choice <= maxMenuChoice) goodChoice = true; else System.out.println("Invalid choice! Please pick 1, 2, 3, or 4"); } goodChoice = false; } catch(InputMismatchException ime) { scn.nextLine(); System.out.println("Please enter an integer"); } catch(Exception e) { scn.nextLine(); System.out.println("Unexpected error: " + e.toString()); System.exit(0); }