title: Loop back to program after an exception is thrown
body: <pre><code>public void runMenu() {
  
    int x = 1;
    Scanner Option = new Scanner (System.in);
    int Choice = 0; 
  
    do {  
      try {
        System.out.println("Choose Option");
        System.out.println("");
        System.out.println("1: Create Account");
        System.out.println("2: Check Account");
        System.out.println("3: Take Action");
        System.out.println("4: Exit");
  
        System.out.println("Please choose");
        Choice = Option.nextInt();  
  
        switch (Choice) { //used switch statement instead of If else because more effective
          case 1:    
            CreateAccount();
            break;   //breaks iteration
          case 2:     
            selectAccount();
            break;
          case 3:
            Menu();
            int choice = UserInput();
            performAction(choice);
            break;
          case 4:
            System.out.println("Thanks for using the application"); 
            System.exit(0);       
          default:
            System.out.println("Invalid Entry");
            throw new Exception();  
        }
      } catch (Exception e) {
        System.err.println("Enter Correct Input");
        return;  
      }
    } while (true);
  }
  </code></pre>
  
  <p>I am trying to make it when users enter incorrect input type like a letter , the exception is caught and then returns back to the menus, right now it catches the exception but it doesnt stop running I have to force stop the program. So I added a return but that just displays the exception error and stops, how can I make it return back to the menus?</p>