Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How to Level Up Your Java Streams with JDK 24's New Gatherers Feature - Practical Tutorial

Dan Vega via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
Learn how to leverage JDK 24's new Stream Gatherers feature to transform your Java collections processing in this 31-minute tutorial. Discover how to write cleaner, more maintainable code for complex data transformations by solving a real-world problem of grouping blog posts by category and displaying the most recent posts. Follow along as the instructor compares traditional pre-JDK 24 approaches with the new Stream Gatherers approach, demonstrating why this feature is a game-changer for Java developers. Master creating custom gatherers for reusable operations, using built-in gatherers like window fixed, and improving both code readability and parallel stream compatibility. The tutorial progresses through setting up a blog post example, analyzing problems with traditional stream approaches, introducing Stream Gatherers, creating and implementing custom gatherers, and exploring additional use cases. Access related resources including a full blog post, GitHub repository with code examples, and JEP 485 documentation to further enhance your Java streams skills.

Syllabus

00:00 - Introduction to JDK 24 & Stream Gatherers
02:45 - Setting up our blog post example
05:32 - Pre-JDK 24 approaches to collection processing
10:18 - Problems with traditional stream approaches
12:05 - Introducing Stream Gatherers
15:43 - Creating custom gatherers
21:27 - Using our custom gatherer
24:15 - Additional examples and use cases
26:30 - Conclusion and community resources

Taught by

Dan Vega

Reviews

Start your review of How to Level Up Your Java Streams with JDK 24's New Gatherers Feature - Practical Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.