Chapter 7 - Java for Beginners Course


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:

  1. Arrays in Java

  2. The enhanced-for loop

  3. The core Java Collection interfaces

  4. ArrayList

  5. HashSet

  6. 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.