Copying an array to a list
<p>Hey guys I am wondering if there's a one-line way of copying an array to a list than the following:</p>

<pre><code>String array[] = new String[]{"1", "2", "3", "4" } ;

List list = new ArrayList();

for (int i=0; i&lt; array.length; i++){
    list.add(array[i] );
}
</code></pre>

<p>Edit: thanks for both informative answers, very helpful :)</p>
