Abstract
While the Set interface is the simplest of the collection types (as it doesn’t add any behavior to the Collection interface), you’re more likely to use the List interface and its implementations: ArrayList and LinkedList. Beyond the basic collection capabilities, the List interface adds positional access to a collection so its elements have some kind of sequential order. Thus, when retrieving elements out of a list, instead of using an Iterator to visit each element, you can fetch a ListIterator to take advantage of that positioning in order to move in both directions.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2001 John Zukowski
About this chapter
Cite this chapter
Zukowski, J. (2001). Lists. In: Java™ Collections. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0854-9_9
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0854-9_9
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-893115-92-7
Online ISBN: 978-1-4302-0854-9
eBook Packages: Springer Book Archive