title: how to scan many time by using for function?
body: <pre><code>import java.util.Scanner;
  public class array2 {
      
       public static void main(String[]sef)
       {
           int a=0;
           int number[]=new int[20];
           Scanner scan=new Scanner(System.in);
           for(a=0;a&lt;number.length;a++);   //**i want scan data many time**
           {
               System.out.println(a+&quot;번째 학생의 숫자를 입력하십시오&quot;);  
               number[a]=scan.nextInt();
               
           }
           scan.close();
           for(a=0;a&lt;10;a++)
           {
               System.out.println(number[a]);   
           }
       }
  }
  </code></pre>
  <p>i want to input data in arr many time. but i don't know how to do and i don't find answers in my language</p>