title: Not catching multiple exceptions
body: <p>If the input is between 1-26, return the value. When I input a number over 27 or a letter, it doesn't catch and handle the exception only skips the line to continue looping. </p>
  
  <p>Why does it do this, and how can I fix this?</p>
  
  <pre><code> public int checkInput(int userInput) {
  
      boolean valid = false;
  
      do {
          try {
              if (userInput &lt;= 26 || userInput &gt; 0) {
                  break;
              }
              valid = true;
  
          } catch (NumberFormatException | InputMismatchException |
                   ArrayIndexOutOfBoundsException e) {
              valid = false;
              System.out.println("The input is invalid, please enter the answer again.");
              userInput = sc.nextInt();
          }
      } while (!valid);
  
      return userInput;
  }
  </code></pre>
  
  <p>Thanks in advance</p>