Mega Code Archive

 
Categories / Java Tutorial / Collections
 

Viewing Subsets

The headSet(), tailSet(), and subSet() allow you to acquire the subset. SortedSet headSet(Object toElement) SortedSet tailSet(Object fromElement) SortedSet subSet(Object fromElement, Object toElement)