title: Continue program after exception
body: <p>OK, so I have this so far:</p>
  
  <pre><code>import java.util.Random;
  import java.util.Scanner;
  class TooHighException extends Exception {}
  
  class TooLowException extends Exception {}
  
  class CorrectException extends Exception {}
  
  public class HighLow {     
      public static void main(String[] args) throws TooLowException, TooHighException, CorrectException {
  
          Random random = new Random();
          Scanner scanner = new Scanner(System.in);
          int number = random.nextInt(100);
          int guess = -1;
          while (guess != number) {
              System.out.print("Enter your guess: ");
              guess = scanner.nextInt();
              if (guess &lt; number) {
                  throw new TooLowException();
              } else if (guess &gt; number) {
                  throw new TooHighException();
              } else {
                  throw new CorrectException();
              }
          }
      }
  }
  </code></pre>
  
  <p>What is supposed to happen is the program picks a random number and the user is prompted to guess that number. It will then state if the guess is too high, too low, or correct. I know that <code>Exception</code>s are not supposed to be used this way but it is what is being asked for. The issue is when I get the <code>Exception</code> thrown it does not allow me to enter a new guess. Any help?</p>