title: "Cannot find symbol - method add" using ArrayList
body: <p>I am trying to create a method that allows another <code>Account</code> to be added to a collection:</p>
  
  <pre><code>import java.util.*;
  import java.util.ArrayList;
  
  /**
   * The Account list if the grouping of all the accounts for customers in the system.
   * 
   * @author
   * @version 1.0
   */
  public class AccountList
  {
      // This is the ArrayList being declared
  
      private ArrayList&lt;Account&gt; accounts;
  
      /**
       * Constructor for objects of class AccountList
       */
  
      public AccountList()
      {
          //This is the ArrayList being initialised in a constructor.
          accounts = new ArrayList&lt;Account&gt;() ;
      }
  
      /**
       * This method will allow a new account to be added to the system.
       * 
       * @param accounts the accounts in the system.
       */
      public void addAccount(Account accounts)
      {
          accounts.add();
  
      }
  }
  </code></pre>
  
  <p>The problem is that it cannot find the method <code>add</code> on the <code>addAccount</code> section even with the <code>ArrayList</code> class being imported at the top of the class. I'm new to Java so any help would be greatly appreciated!</p>