title: Modify current code to reject user input if > 21
body: <p>this is what I have so far, using NetBeans.</p>
  
  <pre><code>System.out.println("Welcome to BlackJack 21!");
  Scanner data = new Scanner(System.in);
  int num1, num2;
  // Read 1st number
  System.out.println("Enter 1st number");
  num1 = data.nextInt();
  // Read 2nd number
  System.out.println("Enter 2nd number");
  num2 = data.nextInt();
  // Find largest number
  if (num1 &gt; num2)
      System.out.println("The largest number:" + num1);
  else
      System.out.println("The largest number:" + num2);
  </code></pre>
  
  <p>All I need help with is: I need to figure out a way that doesn't allow the user to input a number greater that 21. The idea is that it's going to be a blackjack program, and so the numbers being entered by the user cannot surpass 21.</p>
  
  <p>Thank you!!</p>