By Timothy C. Lethbridge
Below you will find the source code that supports our book.
This material is made available according to the terms of our
source license, which you should read.
We welcome all suggestions for improvements to the code and will post
updated versions, and additional code, here from time to time. To make
suggestions, you can email us or
use our feedback
Instructors also have access to the answers to
exercises, including code for all the answers requiring
The software is designed to run on version 1.2 of Java and later. We
have tested this version on Windows and Solaris platforms.
- Javadoc documentation for all
the source code listed below..
- ZIP file with all the
code listed below.. (Note: If you plan to use very
simple Windows editors such as WordPad then you may want to load this
zip file instead, which has a slightly different text file format
that is more compatible with such editors).
- ZIP file with all
the code plus compiled class files listed below.
- OCSF (The Object Client-Server
This is discussed in detail in Chapter 3, with extensions added in Chapter
6. It forms the basis of SimpleChat (below), for which there are project
exercises at the end of several chapters. Since it is a framework, you
should not need to modify this code.
- SimpleChat Phase 1 (See book
This is a simple instant messaging system that illustrates the use of
OCSF. You will modify this if you follow the exercises throughout the
- SimpleChat Phase 2 (See book
page 96-99 for exercises relating to this).
- OCSF Simple GUIs (See book page 260-263) and Test Harness (See book
This is a graphical application for testing OCSF. It includes a basic
AWT-based client and server, as well as test drivers to automatically take
clients and servers through random sequences of activity.
- Postal Code Example (See book
This example illustrates some basic features of Java. It is designed to
help readers refresh their memories of Java as they work through some
- PointCP Example
This is another example that helps readers practise using Java and doing
basic OO design before moving on to more advanced material in the book.
source. (See book page
266 - this is a separate zip file)
- Threads Example.
This example is not in the book, but is included in the Java review
material found on the book's web site.
Back to the support material
Back to the book's main page