title: Java adding objects to an array from another class
body: <p>I am trying to add an object to an ArrayList which is located in other class. I have setters and getters for the ArrayList but I cant add. Thanks in Advance.</p>
  
  <pre><code>public class Reservation {
  
      **Client client;**
  
  
  Reservation(){
  Client a = new Client (id ,name,surname,tel,email);
          **//need to add it here**
  }
  
  
  public class Client {
  
      int clientID;
      String firstName;
      String lastName;
      **public List&lt;Client&gt; clientList = new ArrayList&lt;Client&gt;();**
  </code></pre>