title: Collections.addAll, Queue<Integer> and int[]
body: <p>The following code doesn't work though it seems quite correct:</p>
  
  <pre><code>import java.util.*;
  
  public class Jaba {
  
      public static void main(String args[]) {
          Random rand = new Random();
          int[] array = new int[10];
          for (int i = 0; i &lt; array.length; ++i) {
              array[i] = rand.nextInt(30);
          }
          Queue&lt;Integer&gt; que = new PriorityQueue&lt;Integer&gt;();
          Collections.addAll(que, Arrays.asList(array));
      }
  
  }
  </code></pre>
  
  <p>What should be fixed?</p>