title: method that stores inputs into an array
body: <p>I am trying to write a method that prompts the user to input 20 numbers and stores the numbers in an alpha array. For some reason it is not working. Below is a sample of my method:</p>
  
  <pre><code>public  void inputArray(int a,int[]b){
      b=new int[20];
      int n=0;//int a;
      while(n&lt;5){
          for(int i=0;i&lt;alpha.length;i++){
              //a=window.readInt("please enter no  :");
              alpha[n]=a;
              n++;
          }
      }
  }
  </code></pre>