title: java display input in range
body: <p>Hi what was wrong with the following program? As i want it to display user input integer value in a range of <code>1-10, 11-20,21-30 ... 191-200</code> ?</p>
  
  <pre><code>public class Program
  {
      /**
       * This is the main entry point for the application
       */
     public static void main(String args[]) 
  {
    int a[] = new int[100];
    int i = 0; 
    Scanner in = new Scanner(System.in);
    while(i&lt;100)
    {
    System.out.println("Enter a int");
    a[i] = in.nextInt();
    displayStatistics(a[i]);
  
  
    }
  
  }
  
      public static void displayStatistics(integer[] a[i])
      {
          if(a[i]&gt;=1 &amp;&amp; a[i]&lt;=100) 
        {
          i++;
          System.out.println();  ----&gt; need to display in range 1-10, 11-20,21-30 ... 191-200
        } else {
        System.out.println("Integer not in range of 1-200");
        }
      }
  }
  </code></pre>