Like this article? We recommend
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:
set CLASSPATH=.;%CLASSPATH%
To run the programs, type:
java ArrayListTest
This command should produce the output illustrated in Figure 1.