Introduction to Programming Using Java
Version 3.1, February 2001

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 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 incorporates a few changes and corrections, and it 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 A copy can also be found at, where readers can post annotations and read other user's annotations.

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 information on usage restrictions and for full downloading instructions. A PDF file that can be used for printing the textbook is also available there.

David Eck (
Version 3.0, May 2000
Version 3.1, with minor changes, February 2001