Data structures provide a way to work with collections of objects of a given type and manage them in memory. We’ll provide an introduction into 4 concrete types of data structures in Java and introduce some of the interfaces in the Java Collections framework.
In specific, this chapter will cover:
-
Arrays in Java
-
The enhanced-for loop
-
The core Java Collection interfaces
-
ArrayList
-
HashSet
-
HashMap
There are more implementations of data structures than the ones we’ll introduce in this chapter. You’ll find several more included in Java, and many more that you can find in third-party libraries. |