Skip to main content

Data Sources and Collections

  • Chapter
  • First Online:
Java 9 Recipes
  • 2403 Accesses

Abstract

Almost all applications perform tasks against user data. Sometimes data is obtained from a user, tasks are performed against the data, and the result is returned immediately. More often, data is obtained, and then it is stored within the application for later use, and eventually tasks are performed against it. Applications make use of data structures to store data that can be utilized throughout the lifetime of an application instance. The Java language contains a number of data structures that are known as Collection types, and they can be utilized for this purpose. These data structures implement the java.util.Collection interface, which provides a variety of methods that are useful for adding, removing, and performing tasks against the data that is used with the collection.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Josh Juneau

About this chapter

Cite this chapter

Juneau, J. (2017). Data Sources and Collections. In: Java 9 Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1976-8_7

Download citation

Publish with us

Policies and ethics