From the course: Java 25 for Professionals with Jetbrains AI Assistant
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Challenge: Transform a complex Stream - Java Tutorial
From the course: Java 25 for Professionals with Jetbrains AI Assistant
Challenge: Transform a complex Stream
“
- [Instructor] Time for hands-on with stream gatherers. You're having two tasks here. First is, refactor a loop to Stream with a built-in Gatherer. And the second one is to complete a custom Gatherer. So here, you can find the BatchingWithLoop, and I've created a template for you to start working on doing this in the stream. And here's the template for doing the custom Gatherer. All right, have fun, and good luck.