title: Put a range on the input of an array in java
body: <p>I am new to java programming. I would like to know if there is a way that I can fill the array with integers from the keyboard(range: 10 to 65). Here is my code:</p>
  
  <pre><code>public static void main(String[] args)      
  {
      //Keyboard Initialization
      Scanner kbin = new Scanner(System.in);
  
      //a.Declare an array to hold 10 intgers values
      int list[]=new int[10];     
      int i=0;
      //b.Fill the array with intgers from the keyboard(range: 10 to 50).
      System.out.print("\n\tInput numbers from 10 to 50: \n");
      list[i]= kbin.nextInt();
      if(10&lt;=list[i] &amp;&amp; list[i] &lt;= 50)
      {
          for(i=1; i&lt;=9;i++)
          {
              list [i] = kbin.nextInt();      
          }
      }
  }
  </code></pre>
  
  <p>please help.Thanks!</p>