Skip to main content

Practice · 1 of 5

Build a Stopwatch

CHALLENGE
Difficulty: beginner+25 XP

Implement the Stopwatch nested class: tick() advances one second with correct carry into minutes; toString() returns M:SS (minutes plain, seconds zero-padded to two digits).

Back to lesson: Practice: Design reps