title: Change priorityQueue to max priorityqueue
body: <p>I have priority queue in Java of Integers:</p>
  
  <pre><code> PriorityQueue&lt;Integer&gt; pq= new PriorityQueue&lt;Integer&gt;();
  </code></pre>
  
  <p>When I call <code>pq.poll()</code> I get the minimum element.</p>
  
  <p>Question: how to change the code to get the maximum element?</p>