copy constructor with ArrayList parameter
<p>I'm trying to make a copy constructor for an object and one of the parameters is an ArrayList.</p>

<p>when creating the ArrayList object, I had in mind to use the ArrayList constructor where you can pass a collection as a parameter, but I'm not sure if this will work as a "pointer" to the arraylist or if this will create a whole new arraylist object</p>

<p>This is the code I have</p>

<pre><code>public MyObject(MyObject other)
{
    this.brands= other.brands;
    this.count = other.count;
    this.list = new ArrayList&lt;Integer&gt;(other.list); // will this create a new array list with no pointers to other.list's elements?

}
</code></pre>
