title: Im trying to add a try catch that tells the user they cant plug in negative numbers
body: <p>I was able to add a try catch that tells the user that they cant use 
  letters.However for some reason adding a try catch for negative numbers dosent seem to work.I know that the try block is where if somthing can go wrong like entering in a negative number the catch can print out the error message. I think thats where my problem lies. Another problem that is associated with the try catch is that I'm use to the user entering in -1 to enter the contents that the user inputs so I'm thinking its gonna cause a logical problem. </p>
  
  <p>tl;dr Adding a try catch or another catch to prevent user from adding negative numbers</p>
  
  <p>this is not the the whole program but what it does is that it filters out the integers that the user inputs and separates the evens and odds.</p>
  
  <pre><code> public static void main(String [] args)
      {
          Scanner stdin = new Scanner(System.in);//for user input
          int[] evenNum = new int [100];//Even Array up too 100
          int[] oddNum = new int[100];//Odd Array up too 100
          int evenIndex=0;//even numbers
          int input=0;//user input
          int i=0;//incrementer for arrays
          int k=0; 
          int j=0;
          String name;
  
          System.out.println("Type In Your Name");//Type in name 
              name = stdin.nextLine();
  
  
  while ((i &lt; oddNum.length &amp;&amp; i &lt; evenNum.length) &amp;&amp; input !=-1)//100 numbers only
          {
      try{//this is what we want anything else the catch will block it and display a message
  
  
                  System.out.println(name+" Enter a positive number, Enter -1 For results");
                  input= stdin.nextInt();
  
                  oddNum[i]=input;//holds input
                  i++;//Increments array
              }  
  
                  catch(Exception d){
                      System.out.println("Only Positive Numbers &amp; no Letters Please!");
                      stdin.next();
  
                       }
  
  
                  }
  </code></pre>