title: How to resize/enlarge a PriorityQueue in Java
body: <p>I know the constructor of PriorityQueue in Java needs a size parameter. How to determine it beforehand? What if I need to enlarge the queue or resize it after some removal?</p>
  
  <p>Thank you.</p>