title: Try-Catch for user input
body: <p>I'm trying to make a try-catch statement that catches when the user enters a number less than 0, and then catches if the user enters a char/String considering I want an int from the user.  </p>
  
  <pre><code>try {
      System.out.print("How many square feet are on your lot? (Enter 0 to quit): ");
      userSquareFeet = scnr.nextInt();
  
      if (userSquareFeet &lt; 0) {
          throw new Exception("You can't have a negative value");
      }
  } catch (InputMismatchException e) {
      System.out.println("You can not enter a character(s).");
  } catch (Exception e) {
      System.out.println(e.getMessage());
  }
  </code></pre>
  
  <p>When I enter a char/String, it just starts up an infinite loop for some reason.  Any help is appreciated, sorry for the easy question, Zybooks.com just didn't do a good job on this section in my opinion.</p>