35% Off Finance Skills That Get You Hired - Code CFI35
AI Adoption - Drive Business Value and Organizational Impact
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
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