8
Arrays, Collections, Generics, Functions, and Streams
Up until now, we have used variables to represent a single instance of a primitive data type and a reference data type. More frequently encountered in the real world, though, is the need to work with and process multiple data elements. In this chapter, we will look at the various options available for managing multiple elements. In examining the options in Java for this purpose, we will see how we can enhance type safety.
To process multiple elements more efficiently, we will examine streams—a replacement for traditional loops when coupled with functions.
We will cover the following topics:
- Understanding the array data structure
- Understanding the Collections Framework
- Using sequential ...
Get Transitioning to Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.