StaffCoder
Java

Java Programming Exercises

java 27
3 modules · 12 challengesSign up
Modules3 modules · 12 challenges
Module 1 of 3 · 4 challenges

Data & Decisions

Learn the building blocks of Java: working with numbers and text, making decisions, and organising data in lists and maps.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Shipping Rates

Sign up to unlock
20%1 of 5 solvedeasy
About this challenge

Price parcels from the depot's rate card in whole numbers: a box's volumetric weight, the chargeable kilos rounded up, a yearly forecast that does not overflow, and a price label in euros.

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

Parcel Rules

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

Decide what each kind of parcel costs and whether the depot can take it, with a switch over a sealed interface of records and rules checked in a defined order.

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

Truck Loading

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

Plan a delivery van's day from its stops: parcels per zone in alphabetical order, express stops first, and the loading order that puts the last stop in first, without changing the list you are given.

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

Dispatch Day

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

Turn a night's shipments into the morning dispatch report, writing every piece yourself: chargeable kilos rounded up, base fees and parcel rules checked in order, parcels per zone, the van's loading order, and the night's revenue in exact cents with its price label.

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

About this path

Learn how to write Java programs step by step, one module at a time, with each module building on the last.

Frequently asked questions

4

What will I practice in this path?

3 modules: Data & Decisions, Objects & Errors and Streams & Lambdas.

How many Java exercises are there, and how hard are they?

12 exercises, all easy.

What does this path run on?

Challenges run on java 27.

Do I need to install anything?

No. Every challenge runs in a browser-based IDE with everything already set up, and your code is graded automatically against a test suite.

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.