Programming 2 with Java
Exercise: Stopwatch
Write a program that can be used to start a timer and that periodically displays the elapsed time on the console until the timer is stopped again.
> java Stopwatch
Hit enter key to start...
Hit enter key to stop...
00:00:148
00:00:241
00:00:335
00:00:433
00:00:538
00:00:642
...
00:12.020
Solution