new ArrayList<T> (T[] arr)
<p>Okay So this doesnt make sense to me.... maybe someone can shed some light.
A technique I figure out for converting primitive arrays into ArrayLists is as follows.</p>

<pre><code>arr = new ArrayList&lt;String&gt;(Arrays.asList(primitveArray));
</code></pre>

<p>this works quit well. 
But today, I start wondering how efficent this was, since I happened to be writing some code where performance is more important then It had been in other applications I had worked on in the past and decided to look at the source code for <code>Arrays.asList()</code></p>

<p>I found this:</p>

<pre><code>public static &lt;T&gt; List&lt;T&gt; asList(T... array) {
    return new ArrayList&lt;T&gt;(array);
}
</code></pre>

<p>And I said to myself: "Im such an idiot, Its just passing the array into the ArrayList constructor <code>ArrayList&lt;T&gt;(T[] arr)</code>, why dont I just skip a step and not use the stupid Arrays.asList?</p>

<p>So i try this </p>

<pre><code>arr = new ArrayList&lt;T&gt;(primitveArray)
</code></pre>

<p>in my code. But then suddenly <code>ArrayList&lt;T&gt;(T[] arr)</code> is undefined. Im quite confused why this would be?</p>
