World Headquarters
Jones and Bartlett Publishers
40 Tall Pine Drive
Sudbury, MA 01776
978-443-
[email protected]
http://www.jbpub.com
Jones and Bartlett Publishers
Canada
2406 Nikanna Road
Mississauga, ON L5C 2W
CANADA
Jones and Bartlett Publishers
International
Barb House, Barb Mews
London W6 7PA
UK
Copyright © 2003 by Jones and Bartlett Publishers, Inc.
Cover image © Peter J. Robinson/Photolibrary/PictureQuest
Text photo credits follow the index, which constitutes a continuation of the copyright page.
Unless otherwise acknowledged, all photographs are the property of Jones and Bartlett
Publishers.
Library of Congress Cataloging-in-Publication Data
Dale, Nell B.
Programming and problem solving with Java / Nell Dale, Chip Weems, Mark Headington.
p. cm.
Includes index.
ISBN 0-7637-0490-
- Java (Computer program language) I. Weems, Chip. II. Headington, Mark R. III.
Title.
QA76.73.J38D346 2003
005.13’3--dc
2002043476
All rights reserved. No part of the material protected by this copyright notice may be repro-
duced or utilized in any form, electronic or mechanical, including photocopying, recording, or
any information storage or retrieval system, without written permission from the copyright
owner.
Production Credits
Chief Executive Officer: Clayton Jones
Chief Operating Officer: Don W. Jones, Jr.
Executive V.P. and Publisher: Robert W. Holland, Jr.
V.P., Design and Production: Anne Spencer
V.P., Manufacturing and Inventory Control: Therese Bräuer
V.P., Sales and Marketing: William Kane
Editor-in-Chief, College: J. Michael Stranz
Production Manager: Amy Rose
Senior Marketing Manager: Nathan Schultz
Associate Production Editor: Karen C. Ferreira
Associate Editor: Theresa DiDonato
Production Assistant: Jenny McIsaac
Cover Design: Kristin Ohlin
Composition: Northeast Compositors
Illustrations and Technical Art: Smolinski Studios
Copyediting: Jill Hobbs
Proofreading: Trillium Project Management
Text Design: Anne Spencer
Printing and Binding: Courier Kendallville
Cover Printing: Lehigh Press
This book was typeset in QuarkXPress 4.1 on a Macintosh G4. The font
families used were Caecilia, Myria, and Letter Gothic. The first printing
was printed on 45# Utopia GW Matte.
Printed in the United States of America
07 06 05 04 03 10 9 8 7 6 5 4 3 2 1