title: How to add elements of a string array to a string array list?
body: <p>I am trying to pass a string array as an argument to the constructor of Wetland class; 
  I don't understand how to add the elements of string array to the string array list.</p>
  
  <pre><code>import java.util.ArrayList;
  
  public class Wetland {
      private String name;
      private ArrayList&lt;String&gt; species;
      public Wetland(String name, String[] speciesArr) {
          this.name = name;
          for (int i = 0; i &lt; speciesArr.length; i++) {
              species.add(speciesArr[i]);
          }
      }
  }
  </code></pre>