This last activity does not involve any programming, but will show you how the TimeCounter class you developed can be used in a useful application.
The program StopWatch.java, which is included in the jar file, is a program that implements a standard stop watch. The program uses the TimeCounter class to keep track of the time. To compile a version of the stop watch program that uses your TimeCounter class, type the following command:
javac StopWatch.java TimeCounter.java
After the program compiles type the following command to start the program:
java StopWatch
The resulting stop watch that appears on your screen is made possible by you and your TimeCounter class!! The next time your parents want to know what you are doing in school, show them this program and tell them you wrote it :-)