I have doubt for PriorityQueue from K & B(
java 5) book at page no:567.
output is:
peek 9-how it is 9?
As they have mentioned highest priority is 1 on page 566.
So the answer would be 1 for both peek & poll methods.
poll 9-same here.
Can anybody clear my doubt?
Thanks in advance.