3. IN THE ABOVE CODE IF I CHANGE 10 to 100 I STILL GET THE SAME RESULT, WHY?
Why you expect results to be changed by changing 10 to 100....? 10 or 100 (any int in constructor) specifies initial capacity of PriorityQueue
Read the [B]javadoc if you have any doubt using method[/B] [ October 04, 2006: Message edited by: Riyaz Saiyed ]
Joined: Aug 13, 2006
Typo please read as, compare method should return Positive int : if first argument > then second argument. 0 (Zero) : if first argument == to second argument. Negative int : if first argument< then second argument.