Java Tutorial Information

This page contains information on a two-week Java Tutorial course that I taught to the CS department faculty, as background preparation for the new non-major Computer Science "Elements" courses to be offered starting Fall Semester 1999.

The book I selected for the tutorial course is The Java Programming Language, Second Edition, by Ken Arnold and James Gosling. I chose this book assuming that the majority of the people in the tutorial would be experienced programmers in a modern programming language, and would prefer a book on the core Java language, and not a book on general object-oriented programming concepts using Java.

Other books I recommend are:

The Thinking in Java book is more of a slow start approach, and I have used that book in my CS371P OOP class for CS seniors. The Class Libraries book is a very large reference manual. The other two books are focused on the language implementation, if you want the gory details.

Tutorial Notes

Java Programming

The department has ordered the Metrowerks CodeWarrior Java development software for programming with Java on Windows, Macintosh and Linux. The master CD is available from Patti Spencer.

The deparment Unix machines already have Java installed. If you set your PATH environment variable to include /lusr/java/bin, then you can run the java compiler ('javac') and java interpreter ('java') from a Unix shell as shown in the Hello World example from the first set of tutorial notes.

If you want to download and install the Sun Java Development Kit (JDK) for Solaris or Windows 95/NT, go to Java JDK Page at JavaSoft. You can download either JDK 1.2.1 or JDK 1.1.8, which is the latest stable JDK 1.1 maintenance release. JDK 1.2.1 has the latest language changes. JDK 1.1.8 is probably more stable.

Some Sample Java Code

These examples are from David Flanagan's _Java in a Nutshell_ book. More examples can be found at the Java in a Nutshell webpage.

Java Related Web Sites