StaffCoder
Java
Javajava 27
3 modules · 12 challengesSign up
Modules3 modules · 12 challenges
Module 3 of 3 · 4 challenges

Java Streams & Lambdas

Learn how to process data in Java without writing loops: lambdas, method references, streams that filter, group and add up, and gatherers for running totals and windows.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Delivery Filters

Sign up to unlock
—No data yeteasy
About this challenge

Turn the depot's delivery rules into small pieces of code you can pass around: a lambda for late deliveries, rules joined with and, a ranking built from method references, and the worst delay of the week through an Optional.

Solved in a browser IDE and graded by tests. Sign up to solve

Zone Report

Sign up to unlock
—No data yeteasy
About this challenge

Answer the zone leads' weekly questions with collectors: revenue per zone in alphabetical order, the late parcels of every zone, late against on time, and the latest delivery day per zone.

Solved in a browser IDE and graded by tests. Sign up to solve

Delivery Trends

Sign up to unlock
—No data yeteasy
About this challenge

Follow the depot's numbers day by day: every stop on every route once, a running revenue total, rolling late counts, weekly totals that keep a short last week, and the clean start before the first late day.

Solved in a browser IDE and graded by tests. Sign up to solve

Weekly Report

STAR
Solving it completes the module
100%1 of 1 solvedeasy
About this challenge

Turn a week of deliveries into the weekly report, writing every piece yourself: a rule for late express parcels, a ranking by delay, revenue per zone, a running total day by day, and the busiest zone.

Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.