title: Why there is no ArrayList(T[] t) constructor?
body: <p>It is very common to initialize list by array of objects in such way:</p>
  
  <pre><code>Foo[] objs = ...;
  ArrayList&lt;Foo&gt; list = new ArrayList&lt;Foo&gt;(Arrays.asList(objs));
  </code></pre>
  
  <p>I wonder, is there any reason why desiners of ArrayList didn't include constructor with array as parameter, so that it could be initialized like that:</p>
  
  <pre><code>ArrayList&lt;Foo&gt; list = new ArrayList&lt;Foo&gt;(objs);
  </code></pre>
  
  <p>May be it violates some principles, thread-safety or something else?</p>