 |
Using a comparator to sort a priority queue (Beginning Java forum at JavaRanch)
This Word object was what I wanted to sort with the priority queue, not the Integer object. The (int number) ... since it isn't a primitive and Java might have trouble sorting it via its "natural order" (correct me if wrong). But i couldn't even get the b
www.coderanch.com |
 |