HelpFeedback
Charatan, Java, 2e
Information Center
About the Authors
Book Preface
Overview
Feature Summary
Student Learning Aids
Table of Contents
Sample Chapter
PageOut
Request Lecturer Copy
Request Password
Get Adobe Reader
Feedback
Buy the Book


Student Edition
Instructor Edition
Java in Two Semesters, 2/e

Quentin Charatan
Aaron Kans

ISBN: 0077108892
Copyright year: 2007

Table of Contents



Detailed Table of Contents

Preface
Acknowledgements
Trademarks
Guided Tour

Semester One

1. The first step
1.1 Introduction
1.2 Software
1.3 Compiling programs
1.4 Programming in Java
1.5 Your first program
1.6 Simple data types in Java
1.7 Declaring variables in Java
1.8 Assignments in Java
1.9 Creating constants
1.10 Arithmetic operators
1.11 Expressions in Java
1.12 Output in Java
1.13 Input in Java: the Scanner class
1.14 Strings
1.15 Program design
Self-test questions
Programming exercises

2. Selection
2.1 Introduction
2.2 Making choices
2.3 The ‘if ’ statement
2.4 The ‘if ... else’ statement
2.5 Logical operators
2.6 Nested ‘if ... else’ statements
2.7 The ‘switch’ statement
Self-test questions
Programming exercises

3. Iteration
3.1 Introduction
3.2 The ‘for’ loop
3.3 The ‘while’ loop
3.4 The ‘do ...while’ loop
3.5 Picking the right loop
Self-test questions
Programming exercises

4. Implementing methods
4.1 Introduction
4.2 Declaring and defining methods
4.3 Calling a method
4.4 Method input and output
4.5 More examples of method
4.6 Variable scope
4.7 Method overloading
4.8 Using helper methods in menu-driven programs
Self-test questions
Programming exercises

5. Arrays
5.1 Introduction
5.2 Creating an array
5.3 Accessing array elements
5.4 Passing arrays as parameters
5.5 Returning an array from a method
5.6 The enhanced ‘for’ loop
5.7 Some useful array methods
Self-test questions
Programming exercises

6. Classes and objects
6.1 Introduction
6.2 What is object orientation
6.3 Classes as data types
6.4 Using the String class
6.5 Our own Scanner class for keyboard input
6.6 The BankAccount class
6.7 Arrays of objects
Self-test questions
Programming exercises

7. Implementing classes
7.1 Introduction
7.2 Implementing classes in Java
7.3 The static keyword
7.4 Initializing attributes
7.5 The EasyScanner class
7.6 Passing objects as parameters
7.7 Collection classes
Self-test questions
Programming exercises

8. Extending classes with inheritance
8.1 Introduction
8.2 Defining inheritance
8.3 Implementing inheritance in Java
8.4 Method overriding
8.5 Abstract classes
8.6 The final modifier
8.7 The Object class
8.8 Wrapper classes and autoboxing
8.9 A mixed list
Self-test questions
Programming exercises

9. Software quality
9.1 Introduction
9.2 Developing software
9.3 Maintainability
9.4 Reliability
9.5 Robustness
9.6 Usability
Self-test questions
Programming exercises

10. Graphics and event-driven programs
10.1 Introduction
10.2 The Swing package
10.3 The SmileyFace class
10.4 Event-handling in Java: The ChangingFace class
10.5 An interactive graphics class
10.6 A graphical user interface (GUI) for the Oblong class
10.7 A metric converter
10.8 Layout policies
10.9 Compound containers
10.10 GUIs for collections of objects
Self-test questions
Programming exercises

11. Case study – part 1
11.1 Introduction
11.2 Requirements
11.3 The design
11.4 Implementing the Payment class
11.5 The ObjectList class
11.6 The PaymentList class
11.7 Implementing the Tenant class
11.8 Implementing the TenantList class
Self-test questions
Programming exercises

12. Case study – part 2
12.1 Introduction
12.2 Keeping permanent records
12.3 Design of the GUI
12.4 Designing the event-handlers
12.5 Implementation
12.6 Testing the system
12.7 What next?
Programming exercises


To obtain a lecturer login to the Online Learning Centres, ask your local sales representative. If you're a lecturer thinking about adopting this textbook, request a lecturer copy for review.