Part one of three. What a collection is, why List and ArrayList are not the same thing, and how to load, iterate and choose between List, Set, Queue and Map, with examples that actually run. For anyone who can code and wants to truly understand what they write.
Articles
Java Collections: List Is Not ArrayList
Part 1 of 3javacollectionsfundamentalsarraylisthashmapcollections-seriesMutability, Order and Equality: What Your Collection Promises
Part two of three. Why List.of refuses to change and when that is what you want; what it takes for a HashSet to recognize duplicates; how to define the order of your own classes; and what happens to all of it when several threads are involved. With the code that fails and the code that fixes it.
Part 2 of 3javacollectionsimmutabilityconcurrencycomparatorequals-hashcodecollections-seriesJava Streams: From filter to Expert Collectors
Third and final part. What a stream is (and is not), how to filter, transform, group and summarize collections without writing loops, and the Collectors few people know: teeing, mapMulti, one of your own. With the parallel() and side-effect traps, watched failing.
Part 3 of 3javastreamscollectorscollectionsfunctional-programmingcollections-seriesJava Evolution Through Its LTS Releases: From Java 8 to Java 25
A study guide to what each Java LTS release brought, from 8 to 25: why each feature was born, how the same code looked without it, and when you're better off not using it. Every example was compiled and run on the version its label names.
javajdkltsjava-8java-11java-17java-21java-25