Learn Java Collections

Explore the Java Collections Framework and Algorithms

Learn Java Collections with Practical Examples

Working with collections well is an essential part of how we code in Java. Yes, the Collections framework gives us ready-made structures and algorithms we can use to perform common operations on groups of elements. But knowing how they work, what to use and when – that’s critical. 

The Collections API is a foundational part of the language and has really stood the test of time, at the core, but also greatly evolved and improved with each and every JDK release. 

In this material, we’ll start by understanding why collections are useful and get a high-level overview of the class hierarchy.

Then, we’ll learn how to define different types of collections, including lists, sets, and maps, how to choose the right type for your use case, and how to work with them in practice.

The essential path to working with collections in Java, professionally. The 6 modules build a solid base of understanding commonly used collections, operations over them, how and when to use each, and the new improvements in newer JDKs.

Everything you need to understand the Java Collections API and be prepared for both in-depth collections interview questions or going through the Oracle certification.

1. Overview of Java Collections

3 LESSONS (Text) ~ 1 HOUR

  1. From Arrays to Collections
  2. Overview of the Java Collections Framework (preview lesson)
  3. Working with Arrays

2. Deep Dive Into Lists

4 LESSONS (Text) ~ 3 HOURS

  1. Introduction to ArrayLists
  2. Basic ArrayList Operations
  3. Bulk Operations on Lists (preview lesson)
  4. Introduction to LinkedLists

3. Iteration and Comparison

3 LESSONS (Text) ~ 2 HOURS

  1. Enhanced For-Loops: A Simple Iteration Technique
  2. Iterators: Fine-Grained Control Over Traversal
  3. Sorting Collections with Comparable and Comparator

4. Working with Sets

4 LESSONS (Text) ~ 3 HOURS

  1. Introduction to HashSet
  2. Basic HashSet Operations
  3. LinkedHashSet: Preserving Insertion Order
  4. TreeSet: Sorted Set and Natural Ordering (preview lesson)

5. Working with Maps

5 LESSONS (Text) ~ 3 HOURS

  1. Introduction to HashMap
  2. Basic HashMap Operations
  3. Iterating Over HashMaps
  4. LinkedHashMap: Maintaining Insertion Order
  5. TreeMap: Sorted Maps and Natural Ordering

6. Other Collection Types

7 LESSONS (Text)

  1. Sequenced Collections
  2. The Collections Class: Utility Methods and Best Practices
  3. Generics: A Quick Primer
  4. Overview of Queues
  5. Deciding Which Collection to Use
  6. Select the Right Collection
  7. Legacy Collection

The lessons in this course are text-based, with a full project backing each one.

Access this course through Baeldung All Access

Our Full Course Library 

IntelliJ Idea Ultimate (6 months free)

JProfiler (6 months free)

All Upcoming Courses (Roadmap)

Certificates of Completion

Multiple-Choice questions in Each Lesson 

Pro Access

Yearly or the Lifetime access

Do you have a team who would benefit from taking the course?

20-Day Money Back Guarantee

I believe strongly in the quality of the course material to teach you the fundamentals of the library. I’ve put a lot of work and care into the material and hope you’re going to use it and to develop and maintain your applications.

I confidently back all courses with a 20-Day Money Back Guarantee. I want you to dive in deep and experience the full wealth of this resource without hesitation.

If the material isn’t a good fit, just contact me within 20 days of purchase, and ask for a full refund for any single course package.