An edition of Starting Out with Java (2004)

Starting out with Java

from control structures through objects

4th ed.
  • 5.0 (1 rating)
  • 8 Want to read
  • 1 Have read

My Reading Lists:

Create a new list

  • 5.0 (1 rating)
  • 8 Want to read
  • 1 Have read

Buy this book

Last edited by MARC Bot
December 1, 2025 | History
An edition of Starting Out with Java (2004)

Starting out with Java

from control structures through objects

4th ed.
  • 5.0 (1 rating)
  • 8 Want to read
  • 1 Have read

"Tony Gaddis's accessible, step-by-step style helps beginning students understand the important details necessary to become skilled programmers at an introductory level. Gaddis motivates the study of both programming skills and a programming language by presenting all the details needed to understand the "how" and the "why" - but never losing sight of the fact that most beginners struggle with this material. His approach is both gradual and highly accessible, ensuring that students get the logic behind developing high-quality programs." "In Starting Out with Java: From Control Structures through Objects, Gaddis covers procedural programming - control structures and methods - before introducing object-oriented programming. As with all Gaddis texts, clear and easy-to-read code listings, concise and practical real-world examples, and an abundance of exercises appear in every chapter."--BOOK JACKET.

Publish Date
Language
English
Pages
977

Buy this book

Previews available in: English

Edition Availability
Cover of: Starting out with Java
Starting out with Java: early objects
2008, Pearson/Addison Wesley
in English - 3rd ed.
Cover of: Starting out with Java
Starting out with Java: from control structures through objects
2008, Pearson/Addison Wesley
in English - 4th ed.
Cover of: Starting Out with Java
Starting Out with Java: Early Objects (3rd Edition)
February 20, 2007, Addison Wesley
Paperback in English - 3 edition
Cover of: Starting Out with Java
Starting Out with Java: From Control Structures through Objects (3rd Edition)
January 17, 2007, Addison Wesley
Paperback in English - 3 edition
Cover of: Starting Out with Java
Starting Out with Java: From Control Structures through Data Structures
August 4, 2006, Addison Wesley
Paperback in English - 1 Pap/Cdr edition
Cover of: Starting Out with Java
Starting Out with Java: Industrial Strength
June 1, 2006, Addison Wesley
Paperback in English - 1 edition
Cover of: Starting Out with Java
Starting Out with Java
January 15, 2004, Addison Wesley
Paperback in English - 1 edition

Add another edition?

Book Details


Table of Contents

Preface
Page 15
Chapter 1. Introduction to Computers and Java
Page 25
1.1. Introduction
Page 25
1.2. Why Program?
Page 25
1.3. Computer Systems: Hardware and Software
Page 26
1.4. Programming Languages
Page 30
1.5. What Is a Program Made Of?
Page 33
1.6. The Programming Process
Page 40
1.7. Object-Oriented Programming
Page 43
Review Questions and Exercises
Page 45
Programming Challenge
Page 49
Chapter 2. Java Fundamentals
Page 51
2.1. The Parts of a Java Program
Page 51
2.2. The print and println Methods, and the Java API
Page 57
2.3. Variables and Literals
Page 63
2.4. Primitive Data Types
Page 68
2.5. Arithmetic Operators
Page 78
2.6. Combined Assignment Operators
Page 87
2.7. Conversion between Primitive Data Types
Page 88
2.8. Creating Named Constants with final
Page 92
2.9. The String Class
Page 94
2.10. Scope
Page 99
2.11. Comments
Page 101
2.12. Programming Style
Page 106
2.13. Reading Keyboard Input
Page 108
2.14. Dialog Boxes
Page 116
2.15. Common Errors to Avoid
Page 123
Review Questions and Exercises
Page 124
Programming Challenges
Page 129
Chapter 3. Decision Structures
Page 133
3.1. The if Statement
Page 133
3.2. The if-else Statement
Page 143
3.3. Nested if Statements
Page 146
3.4. The if-else-if Statement
Page 153
3.5. Logical Operators
Page 159
3.6. Comparing String Objects
Page 167
3.7. More about Variable Declaration and Scope
Page 173
3.8. The Conditional Operator (Optional)
Page 174
3.9. The switch Statement
Page 176
3.10. Creating Objects with the DecimalFormat Class
Page 183
3.11. The printf Method
Page 188
3.12. Common Errors to Avoid
Page 192
Review Questions and Exercises
Page 193
Programming Challenges
Page 198
Chapter 4. Loops and Files
Page 203
4.1. The Increment and Decrement Operators
Page 203
4.2. The while Loop
Page 207
4.3. Using the while Loop for Input Validation
Page 214
4.4. The do-while Loop
Page 218
4.5. The for Loop
Page 221
4.6. Running Totals and Sentinel Values
Page 230
4.7. Nested Loops
Page 235
4.8. The break and continue Statements (Optional)
Page 236
4.9. Deciding Which Loop to Use
Page 237
4.10. Introduction to File Input and Output
Page 237
4.11. The Random Class
Page 257
4.12. Common Errors to Avoid
Page 259
Review Questions and Exercises
Page 260
Programming Challenges
Page 266
Chapter 5. Methods
Page 271
5.1. Introduction to Methods
Page 271
5.2. Passing Arguments to a Method
Page 281
5.3. More about Local Variables
Page 293
5.4. Returning a Value from a Method
Page 295
5.5. Problem Solving with Methods
Page 304
5.6. Common Errors to Avoid
Page 308
Review Questions and Exercises
Page 309
Programming Challenges
Page 313
Chapter 6. A First Look at Classes
Page 321
6.1. Classes and Objects
Page 321
6.2. Instance Fields and Methods
Page 344
6.3. Constructors
Page 349
6.4. Overloading Methods and Constructors
Page 358
6.5. Scope of Instance Fields
Page 366
6.6. Packages and import Statements
Page 367
6.7. Focus on Object-Oriented Design: Finding the Classes and Their Responsibilities
Page 369
6.8. Common Errors to Avoid
Page 376
Review Questions and Exercises
Page 376
Programming Challenges
Page 381
Chapter 7. A First Look at GUI Applications
Page 387
7.1. Introduction
Page 387
7.2. Creating Windows
Page 390
7.3. Equipping GUI Classes with a main Method
Page 418
7.4. Layout Managers
Page 420
7.5. Radio Buttons and Check Boxes
Page 436
7.6. Borders
Page 447
7.7. Focus on Problem Solving: Extending Classes from JPanel
Page 450
7.8. Splash Screens
Page 462
7.9. Using Console Output to Debug a GUI Application
Page 463
7.10. Common Errors to Avoid
Page 468
Review Questions and Exercises
Page 468
Programming Challenges
Page 472
Chapter 8. Arrays and the ArrayList Class
Page 475
8.1. Introduction to Arrays
Page 475
8.2. Processing Array Elements
Page 485
8.3. Passing Arrays As Arguments to Methods
Page 494
8.4. Some Useful Array Algorithms and Operations
Page 498
8.5. Returning Arrays from Methods
Page 511
8.6. String Arrays
Page 513
8.7. Arrays of Objects
Page 516
8.8. The Sequential Search Algorithm
Page 519
8.9. Two-Dimensional Arrays
Page 522
8.10. Arrays with Three or More Dimensions
Page 534
8.11. The Selection Sort and the Binary Search Algorithms
Page 535
8.12. Command-Line Arguments and Variable-Length Argument Lists
Page 540
8.13. The ArrayList Class
Page 544
8.14. Common Errors to Avoid
Page 552
Review Questions and Exercises
Page 553
Programming Challenges
Page 558
Chapter 9. A Second Look at Classes and Objects
Page 563
9.1. Static Class Members
Page 563
9.2. Passing Objects As Arguments to Methods
Page 570
9.3. Returning Objects from Methods
Page 573
9.4. The toString Method
Page 575
9.5. Writing an equals Method
Page 579
9.6. Methods That Copy Objects
Page 582
9.7. Aggregation
Page 585
9.8. The this Reference Variable
Page 598
9.9. Enumerated Types
Page 601
9.10. Garbage Collection
Page 610
9.11. Focus on Object-Oriented Design: Class Collaboration
Page 612
9.12. Common Errors to Avoid
Page 616
Review Questions and Exercises
Page 617
Programming Challenges
Page 621
Chapter 10. Text Processing and More about Wrapper Classes
Page 627
10.1. Introduction to Wrapper Classes
Page 627
10.2. Character Testing and Conversion with the Character Class
Page 628
10.3. More String Methods
Page 636
10.4. The StringBuilder Class
Page 650
10.5. Tokenizing Strings
Page 658
10.6. Wrapper Classes for the Numeric Data Types
Page 666
10.7. Focus on Problem Solving: The TestScoreReader Class
Page 669
10.8. Common Errors to Avoid
Page 673
Review Questions and Exercises
Page 673
Programming Challenges
Page 677
Chapter 11. Inheritance
Page 683
11.1. What Is Inheritance?
Page 683
11.2. Calling the Superclass Constructor
Page 696
11.3. Overriding Superclass Methods
Page 704
11.4. Protected Members
Page 713
11.5. Chains of Inheritance
Page 719
11.6. The Object Class
Page 725
11.7. Polymorphism
Page 727
11.8. Abstract Classes and Abstract Methods
Page 732
11.9. Interfaces
Page 739
11.10. Common Errors to Avoid
Page 751
Review Questions and Exercises
Page 752
Programming Challenges
Page 757
Chapter 12. Exceptions and Advanced File I/O
Page 763
12.1. Handling Exceptions
Page 763
12.2. Throwing Exceptions
Page 785
12.3. Advanced Topics: Binary Files, Random Access Files, and Object Serialization
Page 791
12.4. Common Errors to Avoid
Page 808
Review Questions and Exercises
Page 808
Programming Challenges
Page 814
Chapter 13. Advanced GUI Applications
Page 817
13.1. The Swing and AWT Class Hierarchy
Page 817
13.2. Read-Only Text Fields
Page 818
13.3. Lists
Page 820
13.4. Combo Boxes
Page 836
13.5. Displaying Images in Labels and Buttons
Page 842
13.6. Mnemonics and Tool Tips
Page 848
13.7. File Choosers and Color Choosers
Page 850
13.8. Menus
Page 854
13.9. More about Text Components: Text Areas and Fonts
Page 863
13.10. Sliders
Page 867
13.11. Look and Feel
Page 872
13.12. Common Errors to Avoid
Page 874
Review Questions and Exercises
Page 875
Programming Challenges
Page 880
Chapter 14. Applets and More
Page 885
14.1. Introduction to Applets
Page 885
14.2. A Brief Introduction to HTML
Page 887
14.3. Creating Applets with Swing
Page 896
14.4. Using AWT for Portability
Page 905
14.5. Drawing Shapes
Page 910
14.6. Handling Mouse Events
Page 931
14.7. Timer Objects
Page 941
14.8. Playing Audio
Page 945
14.9. Common Errors to Avoid
Page 950
Review Questions and Exercises
Page 950
Programming Challenges
Page 956
Chapter 15. Recursion
Page 959
15.1. Introduction to Recursion
Page 959
15.2. Solving Problems with Recursion
Page 962
15.3. Examples of Recursive Methods
Page 967
15.4. A Recursive Binary Search Method
Page 973
15.5. The Towers of Hanoi
Page 976
15.6. Common Errors to Avoid
Page 981
Review Questions and Exercises
Page 981
Programming Challenges
Page 984
Index
Page 987
Student CD-ROM
Appendix A. Getting Started with Alice
Appendix B. The ASCII/Unicode Characters
Appendix C. Operator Precedence and Associativity
Appendix D. Java Key Words
Appendix E. Installing the JDK and JDK Documentation
Appendix F. Using the javadoc Utility
Appendix G. More about the Math Class
Appendix H. Packages
Appendix I. Working with Records and Random Access Files
Appendix J. More about JOptionPane Dialog Boxes
Appendix K. Answers to Checkpoints
Appendix L. Answers to Odd-Numbered Review Questions
Case Study 1. Calculating Sales Commission
Case Study 2. The Amortization Class
Case Study 3. The PinTester Class
Case Study 4. Parallel Arrays
Case Study 5. The FeetInches Class
Case Study 6. The SerialNumber Class
Case Study 7. A Simple Text Editor Application

Edition Notes

Includes index.

Published in
Boston

Classifications

Dewey Decimal Class
005.1/17
Library of Congress
QA76.73.J38 G333 2008b, QA76.73.J38 G333 2010

The Physical Object

Pagination
p. cm.
Number of pages
977

Edition Identifiers

Open Library
OL22696941M
ISBN 10
0136080200
ISBN 13
9780136080206
LCCN
2008052703
OCLC/WorldCat
268788313
LibraryThing
3143600
Goodreads
6636437

Work Identifiers

Work ID
OL5825094W

Community Reviews (0)

No community reviews have been submitted for this work.

Lists

History

Download catalog record: RDF / JSON / OPDS | Wikipedia citation
December 1, 2025 Edited by MARC Bot import existing book
September 14, 2025 Edited by Drini Add TOC from Tocky
December 19, 2023 Edited by ImportBot import existing book
November 29, 2023 Edited by MARC Bot import existing book
December 12, 2008 Created by ImportBot Imported from Library of Congress MARC record