Jesper's Blog - Pluralsight Author Page
The elements of the priority queue are ordered according to their natural ordering, or by a Comparator provided at queue construction time.
Pawel Nowacki wrote:From Java API: The elements of the priority queue are ordered according to their natural ordering, or by a Comparator provided at queue construction time. elements are ordered at insertion time. If it is what you 've been asking for
Pawel Nowacki wrote:From Java API:
be a well encapsulated person, don't expose your privates, unless you public void getWife()!
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links