Java collections framework: Difference between revisions

Content deleted Content added
new section of Deque interface
m PriorityQueue Class: note about heap
Line 17:
 
===PriorityQueue Class===
PriorityQueue implements Queue, but also alters it. Instead of elements being ordering by the order in which they are inserted, they are ordered by priority. The method used to determine priority is either the compareTo() method in the elements or a method given in the constructor. The class creates this by using a heap to keep the items sorted.<ref>http://download.oracle.com/javase/6/docs/api/java/util/PriorityQueue.html</ref>
 
==Deque Interface==