Java Learner logo

Module 10: Functional Programming and Streams

Lesson focus

Mini-Project: Data Analysis with Streams

Analyze CSV datasets with stream pipelines, collectors, and Optional logic.

Load CSV lines via Files.lines, parse with String.split or regex, map to domain objects.

Compute aggregations (averages, top-k) using groupingBy and summarizing collectors.

Output results to JSON or console tables, and add command-line parameters for filtering.

Lesson quiz

Which collector would you use to compute average values per group?

Next lesson →