The source code from all the examples and solutions for the programming exercises is available in electronic form. We encourage you to compile, run and experiment with the source code.
The source code is available as both a JAR and ZIP archive.
The procedure involving right-clicking and choosing "Save Target as..." works well for downloading the archive.
If the browser does not recognize the JAR archive as a binary file, the downloaded file can be corrupted. We therefore also provide the option to download the archive as a ZIP file. The JAR format is compatible with the ZIP format, so both files are identical, only the name differs.
The files in the archive can be extracted using the jar tool from the JDK. Just run the following command:
jar xvf pgjc-source.jar
ZIP-archiving tools can also be used to extract the files from the archive.
The code is the copyrighted by Khalid A. Mughal and Rolf W. Rasmussen, 2003. You may study, use, modify, and distribute it for non-commercial purposes. The code is provided without any warranty either expressed or implied.