Note: New Version Available...
A newer edition of Introduction to Programming Using Java
is available at
(The new edition requires Java 1.3 or higher,
while this version uses Java 1.1.)

Introduction to Programming Using Java
Version 3.1, February 2001

(Repackaged with minor corrections June 2004)

Author:  David J. Eck  (

WELCOME TO Introduction to Programming Using Java, an on-line textbook on introductory programming, which uses Java as the language of instruction. This text has more than enough material for a one-semester course, and it is also suitable for individuals who want to learn programming on their own. This is the third edition of the text. (Version 3.1 is a minor upgrade of Version 3.0, which was released in May, 2000. Version 3.1 was released in February 2001 and incorporated a few changes and corrections. A final packaging of Version 3.1 was released in June 2004, incorporating corrections made since the release of Version 3.1. This version is released under the Open Publication License.) The third edition covers more material and has more examples than the second edition. It also adds end-of-chapter quizzes and solved programming exercises. Previous editions have been used in a course, Computer Science 124: Introductory Programming, at Hobart and William Smith Colleges. (The title of the previous editions included a reference to this course.) This textbook covers Java 1.1. Most of the applets that are contained in the text require Java 1.1 or higher.

Links for downloading copies of this text can be found at the bottom of this page. To learn more about this on-line text, please read its preface.

Search this Text:

Although this book does not have a conventional index, you can search it for terms that interest you. Note that this searches the version of the text book at its main site, at

Search Introdution to Programming Using Java for pages...


Short Table of Contents:

This is a free textbook. As of Version 3.1, it is published under the terms of the Open Publication License, Version 1.0. The latest edition is always available, at no charge, for downloading and for on-line use at the Web address This edition, the third, is also permanently archived at the address

Downloading Links

Use one of the following direct links to download a compressed archive of this entire textbook. You can use this material on your own computer. You can also re-post it on any Web server: See the preface for more detailed information about downloading. In the preface, you will also find a link to a PDF file that can be used for printing the textbook.

The following archives in older formats do not include the final corrections of June 2004:

David Eck (
Version 3.0, May 2000
Version 3.1, with minor changes, February 2001
Final packaging, with further corrections, June 2004