Library of Congress Cataloging-in-Publication Data
Liang, Y. Daniel.
Introduction to Java programming: comprehensive version/Y. Daniel Liang.--6 th ed.
p. cm.
Includes index.
ISBN 0-13-222158-6
QA76.73.J38L523 2004
005.2 762 ”dc22
2003065629
Vice President and Editorial Director, ECS: Marcia J. Horton
Executive Editor: Tracy Dunkelberger
Associate Editor: Carole Snyder
Editorial Assistant: Christianna Lee
Executive Managing Editor: Vince O'Brien
Managing Editor: Camille Trentacoste
Production Editor: Craig Little
Director of Creative Services: Paul Belfanti
Creative Director: Juan Lopez
Art Director and Cover Manager: Maureen Eide
Cover and Interior Designer: Dina Curro
Managing Editor, AV Management and Production: Patricia Burns
Art Editor: Xiaohong Zhu
Director, Image Resource Center: Melinda Reo
Manager, Rights and Permissions: Zina Arabia
Manager, Visual Research: Beth Brenzel
Manager, Cover Visual Research and Permissions: Karen Sanatar
Manufacturing Manager, ESM: Alexis Heydt-Long
Manufacturing Buyer: Lisa McDowell
Executive Marketing Manager: Robin O'Brien
Marketing Assistant: Mack Patterson
Photo Credits:
Cover: The Pyramid of the Niches, El Tajin, Mexico. Photographer: Adalberto Rios Szalay/Sexto Sol. Courtesy Getty Images.
2007, 2004, 2002, 2001 Pearson Education, Inc.
Pearson Prentice Hall
Pearson Education, Inc.
Upper Saddle River, NJ 07458
All rights reserved. No part of this book may be reproduced in any form or by any means, without permission in writing from the publisher.
Pearson Prentice Hall is a trademark of Pearson Education, Inc.
All other tradmarks or product names are the property of their respective owners .
The author and publisher of this book have used their best efforts in preparing this book. These efforts include the development, research, and testing of the theories and programs to determine their effectiveness. The author and publisher make no warranty of any kind, expressed or implied , with regard to these programs or the documentation contained in this book. The author and publisher shall not be liable in any event for incidental or consequential damages in connection with, or arising out of, the furnishing , performance, or use of these programs.
Printed in the United States of America
10 9 8 7 6 5 4 3 2 1
Pearson Education Ltd., London
Pearson Education Australia Pty. Ltd., Sydney
Pearson Education Singapore, Pte. Ltd.
Pearson Education North Asia Ltd., Hong Kong
Pearson Education Canada, Inc., Toronto
Pearson Educaci ³n de Mexico, S.A. de C.V.
Pearson Education ”Japan, Tokyo
Pearson Education Malaysia, Pte. Ltd.
Pearson Education, Inc., Upper Saddle River, New Jersey
To Samantha, Michael, and Michelle