did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9781576761748

Starting Out with Java 5 : Early Objects

by
  • ISBN13:

    9781576761748

  • ISBN10:

    1576761746

  • Edition: CD
  • Format: Paperback
  • Copyright: 2005-01-01
  • Publisher: Addison Wesley
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $103.00 Save up to $0.51
  • Buy New
    $102.49
    Add to Cart Free Shipping Icon Free Shipping

    USUALLY SHIPS IN 2-3 BUSINESS DAYS

Supplemental Materials

What is included with this book?

Summary

The approach taken by this text can be described as "early objects, late graphics." The student is introduced to object-oriented programming early in the book.The fundamentals of control structures, classes, and the OOP paradigm are thoroughly covered before moving on to graphics and more powerful applications of the Java language. Although it is written for readers with no prior programming background, even experienced programmers will benefit from its depth of detail.

Table of Contents

Preface v
Acknowledgments xii
Classroom Feedback xiii
About the Author xvi
Introduction to Computers and Java
1(34)
Introduction
2(1)
Why Program?
2(1)
Computer Systems: Hardware and Software
3(5)
Programming Languages
8(3)
What Is a Program Made Of?
11(9)
Writing Your First Programs---How to Get Started
20(3)
Object-Oriented Programming
23(12)
Review Questions and Exercises
29(4)
Programming Challenges
33(2)
Java Fundamentals
35(86)
The Parts of a Java Program
36(6)
The print and println Methods, and the Java API
42(7)
Variables and Literals
49(7)
Primitive Data Types
56(13)
Arithmetic Operators
69(6)
Conversion Between Primitive Data Types
75(6)
Combined Assignment Operators
81(2)
Creating Named Constants with final
83(1)
The String Class
84(6)
Scope
90(1)
Comments
91(3)
Programming Style
94(2)
Using the Scanner Class to Read Keyboard Input
96(9)
Dialog Boxes
105(7)
Common Errors to Avoid
112(9)
Review Questions and Exercises
114(4)
Programming Challenges
118(3)
A First Look at Classes and Objects
121(62)
Classes
122(21)
More about Passing Arguments
143(2)
Instance Fields and Methods
145(4)
Constructors
149(7)
A BankAccount Class
156(6)
Classes, Variables, and Scope
162(2)
Packages and import Statements
164(2)
Focus on Object-Oriented Design: Finding the Classes and Their Responsibilities
166(8)
Common Errors to Avoid
174(9)
Review Questions and Exercises
175(4)
Programming Challenges
179(4)
Decision Structures
183(92)
The if Statement
184(9)
The if-else Statement
193(3)
The Payroll Class
196(5)
The if-else-if Statement
201(8)
Nested if Statements
209(4)
Logical Operators
213(11)
Comparing String Objects
224(9)
More about Variable Declaration and Scope
233(3)
The Conditional Operator (Optional)
236(4)
The switch Statement
240(8)
Formatting Numbers with the DecimalFormat Class
248(5)
Focus on Problem Solving: The SalesCommission Class
253(8)
The Random Class
261(2)
Common Errors to Avoid
263(12)
Review Questions and Exercises
264(5)
Programming Challenges
269(6)
Loops and Files
275(68)
The Increment and Decrement Operators
275(5)
The while Loop
280(6)
Using the while Loop for Input Validation
286(4)
The do-while Loop
290(3)
The for Loop
293(9)
Running Totals and Sentinel Values
302(5)
Nested Loops
307(3)
The break and continue Statements
310(1)
Deciding Which Loop to Use
311(1)
Introduction to File Input and Output
311(19)
Common Errors to Avoid
330(13)
Review Questions and Exercises
331(5)
Programming Challenges
336(7)
A Second Look at Classes and Objects
343(90)
Static Class Members
344(7)
Overloaded Methods
351(6)
Overloaded Constructors
357(8)
Passing Objects as Arguments to Methods
365(4)
Returning Objects from Methods
369(3)
The toString Method
372(4)
Writing an equals Method
376(3)
Methods that Copy Objects
379(3)
Aggregation
382(15)
The this Reference Variable
397(2)
Inner Classes
399(4)
Enumerated Types
403(10)
Garbage Collection
413(2)
Focus on Object-Oriented Design: Class Collaboration
415(5)
Common Errors to Avoid
420(13)
Review Questions and Exercises
421(6)
Programming Challenges
427(6)
Arrays and Vectors
433(110)
Introduction to Arrays
434(12)
Processing Array Contents
446(14)
Passing Arrays as Arguments to Methods
460(4)
Some Useful Array Algorithms and Operations
464(11)
Returning Arrays from Methods
475(2)
String Arrays
477(5)
Arrays of Objects
482(5)
The Sequential Search Algorithm
487(3)
The Selection Sort and the Binary Search Algorithms
490(9)
Two-Dimensional Arrays
499(15)
Arrays with Three or More Dimensions
514(1)
Command-Line Arguments and Variable-Length Argument Lists
515(4)
The Vector Class
519(13)
Common Errors to Avoid
532(11)
Review Questions and Exercises
533(4)
Programming Challenges
537(6)
Text Processing and Wrapper Classes
543(64)
Introduction to Wrapper Classes
544(1)
Character Testing and Conversion with the character Class
544(9)
More about String Objects
553(17)
The StringBuffer Class
570(8)
Tokenizing Strings
578(10)
Wrapper Classes for the Numeric Data Types
588(5)
Focus on Problem Solving: The TestScoreReader Class
593(4)
Common Errors to Avoid
597(10)
Review Questions and Exercises
598(4)
Programming Challenges
602(5)
Inheritance
607(84)
What Is Inheritance?
608(12)
Calling the Superclass Constructor
620(9)
Overriding Superclass Methods
629(9)
Protected Members
638(7)
Classes that Inherit from Subclasses
645(6)
The Object Class
651(3)
Polymorphism
654(6)
Abstract Classes and Abstract Methods
660(6)
Interfaces
666(13)
Common Errors to Avoid
679(12)
Review Questions and Exercises
680(5)
Programming Challenges
685(6)
Exceptions and More about Stream I/O
691(76)
Handling Exceptions
692(24)
Throwing Exceptions
716(8)
More about Input/Output Streams
724(14)
Advanced Topics: Binary Files, Random Access Files, and Object Serialization
738(19)
Common Errors to Avoid
757(10)
Review Questions and Exercises
758(6)
Programming Challenges
764(3)
GUI Applications---Part 1
767(106)
Introduction
768(3)
Dialog Boxes
771(13)
Creating Windows
784(26)
Equipping GUI Classes with a main Method
810(1)
Layout Managers
811(19)
Radio Buttons and Check Boxes
830(13)
Borders
843(3)
Focus on Problem Solving: Extending the JPanel Class
846(13)
Using Console Output to Debug a GUI Application
859(5)
Common Errors to Avoid
864(9)
Review Questions and Exercises
865(4)
Programming Challenges
869(4)
GUI Applications---Part 2
873(74)
Read-Only Text Fields
874(1)
Lists
875(18)
Combo Boxes
893(7)
Displaying Images in Labels and Buttons
900(6)
Mnemonics and Tool Tips
906(3)
File Choosers and Color Choosers
909(4)
Menus
913(11)
More about Text Components: Text Areas and Fonts
924(5)
Sliders
929(5)
Look and Feel
934(2)
Common Errors to Avoid
936(11)
Review Questions and Exercises
937(5)
Programming Challenges
942(5)
Applets and More
947(86)
Introduction to Applets
948(2)
A Brief Introduction to HTML
950(11)
Creating Applets with Swing
961(10)
Using AWT for Portability
971(7)
Drawing Shapes
978(23)
Handling Mouse Events
1001(12)
Timer Objects
1013(4)
Playing Audio
1017(5)
Common Errors to Avoid
1022(11)
Review Questions and Exercises
1023(6)
Programming Challenges
1029(4)
Recursion
1033(30)
Introduction to Recursion
1033(4)
Solving Problems with Recursion
1037(4)
Examples of Recursive Methods
1041(8)
A Recursive Binary Search Method
1049(3)
The Towers of Hanoi
1052(5)
Common Errors to Avoid
1057(6)
Review Questions and Exercises
1058(3)
Programming Challenges
1061(2)
Index 1063

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program