title: java IF NOT statement
body: <pre><code>import java.util.Random;
  import java.util.Scanner;
  
  public class Game {
      public static void main(String[] args) {
  
          System.out.println("Guess a number betwwen 1 and 1000");
  
          Random rand = new Random(); 
          int secretNumber = rand.nextInt (1000);
  
  
          Scanner keyboard = new Scanner(System.in);
          int guess;
  
          do {
          guess = keyboard.nextInt();
  
          if (guess == secretNumber)
              System.out.println("You WON!!! Congratulations!");
          else if (guess &lt; secretNumber)
               System.out.println("Nope, to low");
          else if (guess &gt; secretNumber)
              System.out.println("Sorry, to high");
  
  
          } while (guess != secretNumber);
  
  
      }
  }
  </code></pre>
  
  <p>how can i add to this code a statement, that IF NOT NUMERIC INPUT System.out.println("invalid input, please use type numbers only!")</p>