Skip to main content

Lists

  • Chapter

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   49.95
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics