This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
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.