Skip to lesson

Refactor a marks report to streams

Refactoring means changing how code is written without changing what it does. Here a working result program full of loops, counters and hand-kept maps becomes a set of stream pipelines, and its printed report stays the same, character for character.

Sign in to continue this lesson

Create an account to read every lesson, practise with the exercises and keep track of your progress.