Running the Supplied Java Code
To run the code, download it here, and unzip it into any old folder. Next, open a DOS console and change directory to where the unzipped code files reside and run the command javac *.java. To run the code, update your classpath as follows:
To run the programs, type:
This command should produce the output illustrated in Figure 1.