title: How to put array's data directly into PriorityQueue
body: <p>How do you put array's data directly into <code>PriorityQueue</code> which implementing <code>Queue</code> Interface  ?</p>
  
  <pre><code>ContestantFilter [] contestantFilter = new ContestantFilter [50];
  contestantFilter [0] = new ContestantFilter("Agnesy Pricillia","IF110026");
  contestantFilter [1] = new ContestantFilter("Ellen Shie ","IF110103");
  contestantFilter [2] = new ContestantFilter("Wilma Yue Gunawan","EL110021");
  .................
  .................
  
  Queue&lt;ContestantFilter&gt; queue = new PriorityQueue&lt;ContestantFilter&gt;(1,
                  new Comparator&lt;ContestantFilter&gt;() {
                       @Override
                      public int compare(ContestantFilter t1, ContestantFilter t2) {
                          return t1.getID().compareTo(t2.getID());}});
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>for(ContestantFilter c : contestantFilter ){ queue.add(c);}
  </code></pre>
  
  <p>but it's slow .</p>
  
  <p>Something like :</p>
  
  <pre><code>queue = ((Queue&lt;ContestantFilter &gt;) Arrays.asList(contestantFilter );
  </code></pre>
  
  <p>Casting doesn't work .</p>