The Java library provides a generic class PriorityQueue:
The PriorityQueue can be set up using .compareTo() to order events according to their natural ordering, or using a specified Comparator.
Contents    Page-10    Prev    Next    Page+10    Index