title: Assignment for my study
body: <p>Write an Java apps that accepts 100 integer numbers from a user. The input should be in  the range of 1-200.the program will display the number of integers in the following categories:</p>
  
  <pre><code>1-10
  11-20
  21-30
  31-40
  …
  …
  191-200
  </code></pre>
  
  <blockquote>
    <p>Your program should have a void method that will do these tasks. It has one parameter that represents the input values in the form of <code>int[]</code> as shown below:</p>
    
    <p><code>void displayStatistics( int[] input)</code></p>
  </blockquote>
  
  <p>Please help me everyone.I'm no idea what to do next.</p>
  
  <p>The code is like this:   </p>
  
  <pre><code>public static ArrayList&lt;Integer&gt; array = new ArrayList&lt;Integer&gt;();
  public static Scanner reader = new Scanner(System.in);
  
  public static void main (String[] args)
  {
      System.out.println("Enter number and 0 for stop.");
      int enter = reader.nextInt();
      while ( enter != 0)
      {
          if ((enter &gt;= 1) &amp;&amp; (enter &lt;= 200))
          {
              array.add(enter);
          }
  
          else
          {
              System.out.println("Number range is 1-200");
          }
  
           enter= reader.nextInt();    
      }
  
      void displayStatistics(int[] input)
      {
      for (int i = 1; i &lt;= 20; i++)
      {
          int Nombor1 = ((i-1) * 10) + 1;
          int Nombor2 = (i * 10);
          int count = 0;
          System.out.print((Number1 + "-" + Number2 +"   ===&gt;"));
          for (int number : array)
  
          {
              if ((number &gt;= Number1) &amp;&amp; (number &lt;= Number2))
              {
                  count++;
              }
          }
  
          for (int x = 0; x &lt; count; x++)
  
              System.out.print(x+1);
  
              System.out.println();
      }
      }   
  } 
  </code></pre>