But on page 567:they have explained about this example and have written that peek gives highest priority which is 9, but when I run this example it gives me 1 instead of 9. So what about that/
Thanks. Even I got 9 now. But still I have question, the elements are returned in priority order, So why 9 is highest priority instead of 1. Also what is "10" in comparator it is supposed to be "ia".
Thanks for this details. For second question the answer is below. Am I right?
PriorityQueue() Creates a PriorityQueue with the default initial capacity (11) that orders its elements according to their natural ordering (using Comparable).
SCJP-1.5<br />SCWCD-1.4
You can't expect to wield supreme executive power just because
a bit of art, as a gift, the permaculture playing cards