This tutorial could not be loaded.
Loading tutorial...
Interactive tutorial
Learn to choose Java collections, build type-safe generic APIs, and process data with readable Stream pipelines. Using a small book catalog, you will handle mutability, equality, wildcard bounds, transformations, optional results, and collectors, then combine these skills in a complete program you can run locally.
Step 1 of 12
5 min
Choose the Right Collection Contract
Choose List, Set, and Map contracts, then select implementations based on ordering, uniqueness, and lookup requirements in a book catalog.
Step 2 of 12
6 min
Control Mutation, Copies, and Views
Choose a mutable working list when a catalog must change, and distinguish an unmodifiable snapshot from an unmodifiable view of a backing list.
Step 3 of 12
7 min
Make Equality and Ordering Explicit
Use record equality, hashing rules, and comparator tie-breakers to predict collection membership and deterministic ordering.
Step 4 of 12
7 min
Build Type-Safe Generic Classes and Methods
Create small generic classes and methods that keep stored, input, and returned values connected by a shared type.
Step 5 of 12
7 min
Design Flexible APIs with Wildcards
Use PECS to design a flexible, type-safe method that copies values between compatible lists.
Step 6 of 12
5 min
Understand How a Stream Pipeline Executes
Build and trace a safe sequential Stream pipeline that filters the book catalog and counts matching books.
Step 7 of 12
6 min
Transform and Flatten Typed Data
Transform catalog books into titles and flatten nested reading lists while tracking the stream element type at every stage.
Step 8 of 12
5 min
Deduplicate and Rank Stream Results
Rank complete stream results deterministically and understand how the current element type controls deduplication.
Step 9 of 12
8 min
Handle Optional Results and Numeric Reductions
Choose safe terminal operations for boolean checks, optional first matches, and page-count reductions.
Step 10 of 12
6 min
Collect Results into Lists, Sets, and Maps
Choose stream collectors based on explicit requirements for mutable results, encounter order, uniqueness, ID lookup, and duplicate-key handling.
Step 11 of 12
7 min
Build Grouped and Partitioned Summaries
Create typed reports with grouping collectors, ordered genre totals, and boolean partitions.
Step 12 of 12
12 min
Apply the Full Workflow to a Catalog Report
Complete and run a self-contained Java 17 catalog report that integrates safe copying, generic helpers, deterministic streams, unmodifiable results, and grouped totals.
Video Courses
recommended
Advanced
recommended
Advanced
Advanced
Ideal for beginners
Ideal for beginners
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks