title: Conversion from ArrayList to Collection
body: <p>I am having difficulty in this conversion. I don't know if there is a syntax error or this is not even possible. </p>
  
  <p>I need to convert from--</p>
  
  <pre><code>private static final List&lt;Contact&gt; CONTACTS = Arrays.asList(
          new Contact("text1", "name1"),
          new Contact("text2", "name2"),
          new Contact("text3", "name3"));
  </code></pre>
  
  <p>To--</p>
  
  <pre><code>Collection c = new ArrayList(Arrays.asList(--?--))
  </code></pre>
  
  <p>--?-- --> (I don't understand what comes here)</p>
  
  <p>By doing this, I intend to avoid UnsupportedOperationException.
  Any help appreciated, thanks!</p>
  
  <p>Hey thank you all, i got it!
  This worked--<br>
  <strong>Solution:</strong></p>
  
  <pre><code>List&lt;? extends Contact&gt; col = new ArrayList&lt;Contact&gt;(CONTACTS);
  </code></pre>