title: How do I add an arraylist to the constructor?
body: <p>I want to add an arraylist to the constructor so that every object I create has their own ArrayList however I'm not sure how to do it and could really use the help. This is what I have so far</p>
  <pre><code>    private ArrayList&lt;String&gt; Requirements;
  
      public Module(int ModuleCode, String module_name, double Credit, int Weeks,ArrayList&lt;String&gt; Requirements) {
          this.ModuleCode = ModuleCode;
          this.module_name = module_name;
          this.Credit = Credit;
          this.Weeks = Weeks;
          this.Requirements = Requirements;
  
      }
  </code></pre>