GO TO
Java Concepts for Java 5 and 6, 5th Edition
by
Horstmann, Cay S., San Jose State Univ.
Publisher: John Wiley & Sons
Publishing Date: 2007/03/05
eText ISBN-10
0-470-37267-2
eText ISBN-13
978-0-470-37267-8
Print ISBN-10
0-470-10555-0
Print ISBN-13
978-0-470-10555-9
« Back to My CourseSmart
Java Concepts for Java 5 and 6, 5th Edition
by
Horstmann, Cay S., San Jose State Univ.
eTextbook $60.50
(180 day subscription)
Compare Online & Downloadable
Copyright, viii
Preface, ix
Special Features, xxvii
Chapter 1. Introduction, ...
Chapter 2. Using Objects,...
Chapter 3. Implementing C...
Chapter 4. Fundamental Da...
Chapter 5. Decisions, 163
Chapter 6. Iteration, 203
Chapter 7. Arrays and Arr...
Chapter 8. Designing Clas...
Chapter 9. Interfaces and...
Chapter 10. Inheritance, ...
Chapter 11. Input/Output ...
Chapter 12. Object-Orient...
Chapter 13. Recursion, 51...
Chapter 14. Sorting and S...
Chapter 15. An Introducti...
Appendix A. Java Language...
Appendix B. The Basic Lat...
Appendix C. The Java Libr...
Glossary, 659
Index, 675
Illustration Credits, 701
Table of Contents
Copyright, viii
Preface, ix
Special Features, xxvii
Chapter 1. Introduction, 1
1.1. What Is Programming?, 2
1.2. The Anatomy of a Computer, 3
1.3. Translating Human-Readable Programs to Machine Code, 8
1.4. The Java Programming Language, 9
1.5. Becoming Familiar with Your Computer, 12
1.6. Compiling a Simple Program, 15
1.7. Errors, 21
1.8. The Compilation Process, 23
Chapter 2. Using Objects, 33
2.1. Types and Variables, 34
2.2. The Assignment Operator, 36
2.3. Objects, Classes, and Methods, 37
2.4. Method Parameters and Return Values, 40
2.5. Number Types, 43
2.6. Constructing Objects, 44
2.7. Accessor and Mutator Methods, 46
2.8T. Implementing a Test Program, 47
2.9. The API Documentation, 50
2.10. Object References, 52
2.11G. Graphical Applications and Frame Windows, 55
2.12G. Drawing on a Component, 57
2.13G. Ellipses, Lines, Text, and Color, 60
Chapter 3. Implementing Classes, 75
3.1. Levels of Abstraction, 76
3.2. Specifying the Public Interface of a Class, 79
3.3. Commenting the Public Interface, 84
3.4. Instance Fields, 87
3.5. Implementing Constructors and Methods, 89
3.6T. Unit Testing, 95
3.7. Categories of Variables, 98
3.8. Implicit and Explicit Method Parameters, 100
3.9G. Shape Classes, 103
Chapter 4. Fundamental Data Types, 123
4.1. Number Types, 124
4.2. Constants, 127
4.3. Assignment, Increment, and Decrement, 133
4.4. Arithmetic Operations and Mathematical Functions, 134
4.5. Calling Static Methods, 139
4.6. Strings, 144
4.7. Reading Input, 147
Chapter 5. Decisions, 163
5.1. The if Statement, 164
5.2. Comparing Values, 169
5.3. Multiple Alternatives, 175
5.4. Using Boolean Expressions, 183
5.5T. Test Coverage, 188
Chapter 6. Iteration, 203
6.1. while Loops, 204
6.2. for Loops, 209
6.3. Nested Loops, 215
6.4. Processing Sentinel Values, 216
6.5. Random Numbers and Simulations, 223
6.6T. Using a Debugger, 226
6.7T. A Sample Debugging Session, 229
Chapter 7. Arrays and Array Lists, 249
7.1. Arrays, 250
7.2. Array Lists, 254
7.3. Wrappers and Auto-boxing, 259
7.4. The Enhanced for Loop, 261
7.5. Simple Array Algorithms, 263
7.6. Two-Dimensional Arrays, 268
7.7. Copying Arrays, 272
7.8T. Regression Testing, 278
Chapter 8. Designing Classes, 293
8.1. Choosing Classes, 294
8.2. Cohesion and Coupling, 296
8.3. Accessors, Mutators, and Immutable Classes, 299
8.4. Side Effects, 299
8.5. Preconditions and Postconditions, 304
8.6. Static Methods, 307
8.7. Static Fields, 309
8.8. Scope, 312
8.9. Packages, 317
8.10T. Unit Test Frameworks, 323
Chapter 9. Interfaces and Polymorphism, 337
9.1. Using Interfaces for Code Reuse, 338
9.2. Converting Between Class and Interface Types, 345
9.3. Polymorphism, 346
9.4. Using Interfaces for Callbacks, 348
9.5. Inner Classes, 353
9.6G. Events, Event Sources, and Event Listeners, 355
9.7G. Using Inner Classes for Listeners, 359
9.8G. Building Applications with Buttons, 362
Chapter 10. Inheritance, 377
10.1. An Introduction to Inheritance, 378
10.2. Inheritance Hierarchies, 383
10.3. Inheriting Instance Fields and Methods, 385
10.4. Subclass Construction, 391
10.5. Converting Between Subclass and Superclass Types, 392
10.6. Polymorphism, 395
10.7. Access Control, 400
10.8. Object: The Cosmic Superclass, 403
10.9G. Using Inheritance to Customize Frames, 410
10.10G. Processing Text Input, 412
10.11G. Text Areas, 415
Chapter 11. Input/Output and Exception Handling, 429
11.1. Reading and Writing Text Files, 430
11.2. Throwing Exceptions, 433
11.3. Checked and Unchecked Exceptions, 436
11.4. Catching Exceptions, 438
11.5. The finally Clause, 441
11.6. Designing Your Own Exception Types, 443
11.7. Case Study: A Complete Example, 445
Chapter 12. Object-Oriented Design, 457
12.1. The Software Life Cycle, 458
12.2. Discovering Classes, 463
12.3. Relationships Between Classes, 466
12.4. Case Study: Printing an Invoice, 469
12.5. Case Study: An Automatic Teller Machine, 481
Chapter 13. Recursion, 511
13.1. Triangle Numbers, 512
13.2. Permutations, 516
13.3. Recursive Helper Methods, 524
13.4. The Efficiency of Recursion, 526
13.5. Mutual Recursions, 532
Chapter 14. Sorting and Searching, 549
14.1. Selection Sort, 550
14.2. Profiling the Selection Sort Algorithm, 553
14.3. Analyzing the Performance of the Selection Sort Algorithm, 557
14.4. Merge Sort, 559
14.5. Analyzing the Merge Sort Algorithm, 562
14.6. Searching, 566
14.7. Binary Search, 568
14.8. Sorting Real Data, 571
Chapter 15. An Introduction to Data Structures, 581
15.1. Using Linked Lists, 582
15.2. Implementing Linked Lists, 587
15.3. Abstract and Concrete Data Types, 597
15.4. Stacks and Queues, 601
Appendix A. Java Language Coding Guidelines, 613
Appendix B. The Basic Latin and Latin-1 Subsets of Unicode, 621
Appendix C. The Java Library, 624
Glossary, 659
Index, 675
Illustration Credits, 701
Please use the Print button in the CourseSmart Reader header.