title: adding an array into an ArrayList
body: <p>I know that I am doing something silly here but I am trying to write my first piece of code using Java Arraylists and I have got myself confused.</p>
  
  <p>Basically I have created an Arraylist called allPays.  This is going to be an array list of employee pay for each month of the year.  So if I have 10 employees then the array list will contain 10 arrays of 12 months pay.</p>
  
  <p>I have then created my first array of 12 months pay.</p>
  
  <p>I then try and call a method to add the array to the Arraylist.</p>
  
  <p>Put it is not compiling …… can anyone guide me on where I am going wrong.  Sorry that this appears basic but I am finding it a challenging concept.</p>
  
  <pre><code>    package christmas;
      import java.util.ArrayList;
  
      public class Pays {
  
          public static void main(String[] args) {
  
  
          ArrayList allPays = new ArrayList&lt;Double&gt;();
  
          double[] employeePay = {10.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8,0, 9.0, 10.0, 11.0, 12.0};
  
          addtothearray(employeePay);
  
           }
  
  
          public static void addtothearray(double[] Pay) {
  
  
          allPays.add(Pay);
  
          }
       }
  </code></pre>