February 2014
Beginner
1248 pages
62h 25m
English
• A Set (p. 711) is an unordered Collection that contains no duplicate elements. HashSet (p. 711) stores its elements in a hash table. TreeSet (p. 711) stores its elements in a tree.
• Interface SortedSet (p. 712) extends Set and represents a set that maintains its elements in sorted order. Class TreeSet implements SortedSet.
• TreeSet method headSet (p. 712) gets a TreeSet view containing elements that are less than a specified element. Method tailSet (p. 713) gets a TreeSet view containing elements that are greater than or equal to a specified element. Any changes made to these views are made to the original TreeSet.
Read now
Unlock full access