title: in Java, How do I peek() the top k elements in a PriorityQueue ?
body: <p>I see in the documentation,
  that <a href="http://docs.oracle.com/javase/7/docs/api/java/util/PriorityQueue.html#peek%28%29" rel="nofollow">PriorityQueue.peek()</a> gives me access to the head of the queue in O(1),   but what if I need access to the k top elements in the queue ?
   I would use <code>poll()</code> k times, but that takes O(log(N)) , is there a way to do it in constant time ?</p>