Text
Java how to program: late objects version
Contents
Chapter 1. Introduction Computers, the Internet and the Web
1.1. Introduction
1.2. Computers: Hardware and Software
1.3. Computer Organization
1.4. Early Operating Sytems
1.5. Personal, Distributed, and Client/Server Computing
1.6. The Internet and The WWW
1.7. Machine Languages, Assembly Languages and High Level Languages
1.8. History of C and C++
1.9. History of Java
1.10. Java Class Libraries
1.11. Fortran, Cobol, Pascal and Ada
1.12. BASIC, Visual Basis, Visual C++, C# and .NET
1.13. Typical Java Development Environment
1.14. Notes about Java anda Jaca How to Program
1.15. Test-Driving a Java Application
1.16. Introduction to Object TEchnology and the UML
1.17. Web 2.0
1.18. Software Technologies
1.19. Wrap-Up
1.20. Web Resources
Chapter 2. Introduction to Java Applications
2.1. Introduction
2.2. Our First Program in Java: Printing a Line Text
2.3. Modifying Our First Java Program
2.4. Displaying Text with printf
2.5. Another C++ Program: Adding Integers
2.6. Memory Concepts
2.7. Arithmetics
2.8. Decision Making: Equality and Relationalm Operators
2.9. (Optional) GUI and Graphics Case Study: Using Dialog Boxes
2.10. Wrap-U
Chapter 3. Control Statements; Part 1
3.1. Introduction
3.2. Algorithms
3.3. Pseudocode
3.4. Control Structures
3.5. if Selection Statement
34.6. if.. else Double-Selection Statement
3.7. while Repetition
34.8. Formulating Algorithms: Counter-Controlled Repetition
3.9. Formulating Algorithms: Sentinel-Controlled Repetition
3.10. Formulating Algorithms: Nested-Controlled Repetition
3.11. Assignment Operators
3.12. Increment and Decrement Operators
3.13. Primitive Types
3.14. (Optional) GUI and Graphics Case Study: Creating Simple Drawings
3.15. Wrap-Up
Chapter 4. Control Statement: Part 2
4.1. Introduction
4.2. Essentials of Counter-Controlled Repetition
4.3. for Repetition Statement
4.4. Example Using the for Statement
4.5. do...while Repetition Statement
4.6. switch Multiple-Selection Statement
4.7. break and continue Statement
4.8. Logical Operators
4.9. Structured Programming Summary
4.10. (Optional) GUI and Graphics Case Study: Drawing Rectangles and Ovals
4.11. Wrap-Up
Chapter 5. Methods
5.1. Introduction
5.2. Program Modules in Java
5.3. static Methods, static Fields and Class Math
5.4. Declaring Methods
5.5. Notes on Declaring and Using Methods
5.6. Method-Call Stack and Activation Records
5.7. Argument Promotion and Casting
5.8. Java API Packages
5.9. Case Study: Random-Number Generation
5.10. Case Study: A Game of Chance; Introducing Enumerations
5.11. Scope of Declarations
5.12. Method Overloading
5.13. (Optional) GUI and Graphics Case Study: Colors and Filled Shapes
5.14. Wrap-Up
Chapter 6. Arrays; Introducing Strings and Files
6.1. Introduction
6.2. Primitive Types vs Reference Types
6.3. Arrays
6.4. Declaring and Creating Arrays
6.5. Examples Using Arrays
6.6. Enhanced for Statement
6.7. Passing Arrays to Methods
6.8. Multidimensional Arrays
6.9. Case Study: Summarizing Student Exam Grades Using a Two-Dimensional Array
6.10. Variable-Lenght Argument Lists
6.11. Using Command-Line Arguments
6.12. Class Arrays
6.13. Introduction to Collections and Class ArrayList
6.14. Fundamentals of Charachters and Strings
6.15. Class String
6.16. Introduction to File Processing
6.17. Data Hierarchy
6.18. Files and Streams
6.19. Sequential-Access Text Files
6.20. (Optional) GUI and Graphics Case Study: Drawing Arcs
6.21. Wrap-Up
Chapter 7. Introduction to Classes and Objects
7.1. Introduction
7.2. Classes, Objects, Methods, and Instance Variables
7.3. Declaring a Class and Instantiating an Object of that Class
7.4. Initializing Objects with Constructors
7.5. Case Study: Account Balances, Validating Constructors Arguments
7.6. Case Study: Card Shuffling and Dealing Simulation
7.7. Wrap-Up
Chapter 8. Classes and Objects: A Deeper Look
8.1. Introduction
8.2. time Class Case Study
8.3. Controlling Access to Members
8.4. Referrind to the Current Object's Members with the this Reference
8.5. time Class Case Study: Overloaded Constructors
8.6. Default and No-Argument Constructors
8.7. Notes on Set and Get Methods
8.8. Composition
8.9. Enumerations
8.10. Garbage Collection and Method finalize
8.11. static Class Members
8.12. static Import
8.13. final Instance Variables
8.14. time Class Case Study: Creating Packages
8.15. Package Access
8.16.(Optional) GUI and Graphics Case Study: Using Objects with Graphics
8.17. Wrap-Up
Chapter 9. Object-Oriented Programming: Inheritance
9.1. Introduction
9.2. Superclasses and Subclasses
9.3. protected Members
9.4. Relationship Between Superclasses and Subclasses
9.5. Constuctors in SubclassesUsing
9.6. Software Engineering with Inheritance
9.7. object Class
9.8. (Optional) GUI and Graphics Case Study: Displaying Text and Images Using Labels
9.9. Wrap-Up
Chapter 10. Object-Oriented Programming: Polymorphism
10.1. Introduction
10.2. Polymorphism Examples
10.3. Demonstrating Polymorphism Behavior
10.4. Abstract Classes and Methods
10.5. Case Study: Payroll System Using Polymorphism
10.6. final Methods and Classes
10.7. Case Study: Creating and Using Interfaces
10.8.(Optional) GUI and Graphics Case Study: Drawing with Polymorphism
10.9. Wrap-Up
Chapter 11. Exception Handling
11.1. Introduction
11.2. Error-Handling Overview
11.3. Example: Divide by Zero without Exception Handling
11.4. Example: Handling AritmethicException and InputMismatchExceptions
11.5. When to Use Exception Handling
11.6. Java Exception Hierarchy
11.7. finally Block
11.8. Stack Unwinding
11.9. printStackTrace, getStackTrace and getMessage
11.10. Chained Exceptions
11.11. Declaring New Exception Types
11.12. Preconditions and Postconditions
11.13. Assertions
11.14. Wrap-Up
Chapter 12. ATM Case Study, Part 1: Object-Oriented Design with the UML
12.1. Case Study Introduction
12.2. Examining the Requirements Documents
12.3. Identifying the Classes in a Requirement Document
12.4. Identifying Class Attributes
12.5. Identifying Objects's State and Activities
12.6. Identifying Class Operations
12.7. Indicating Collaboration among Objects
12.8. Wrap-Up
Chapter 13. ATM Case Study, Part 2: Implementing an Object-Oriented Design
13.1. Introduction
13.2. Starting to Program the Classes of the ATM System
13.3. Incorporating Inheritance and Polymorphism into the ATM System
13.4. ATM Case Study Implementation
13.5. Wrap-Up
Chapter 14. GUI Components: Part 1
14.1.
14.2. Java's New Nimbus Look-and-Feel
14.3. Simple GUI-Based I/O with JOptionPane
14.4. Overview of Swing Components
14.5. Displaying Text and Images in a Windows
14.6. Text Field and an Intoduction to Event Handling with Nested Classes
14.7. Common GUI Event Types and Listener Interfaces
14.8. How Event Handling Works
14.9. JButton
14.10. Button That Maintain State
14.11. JComboBox and Using an Anonymous Inner Class for Event Handling
14.12. Jlist
14.13. Multiple-Selection Lists
14.14. Mouse Event Handling
14.15. Adapter Classes
14.16. JPanel Subclass for Drawing with Mouse
14.17. Key Event Handling
14.18. Introduction to Layuout Manager
14.19. Using Panels to Manage More Complex Layout
14.20. JTextArea
14.21. Wrap-Up
Chapter 15. Graphics and Java 2D
15.1. Introduction
15.2. Graphics Contexts and Objects
15.3. Color Control
15.4. Manipulating Fonts
15.5. Drawing Lines, Rectangles, and Ovals
15.6. Drawing Arcs
15.7. Drawing Polygons and Polylines
15.8. Java 2D API
15.9. Wrap-Up
Chapter 16. Strings, Characters and Reguler Expressions
16.1. Introduction
16.2. Class StringBuilder
16.3. Class Characters
16.4. Tokenizing Strings
16.5. Regular Expressions, Class Pattern and Class Matches
16.6. Wrap-Up
Chapter 17. Files, Streams and Object Serialization
17.1. Introduction
17.2. The java.io Package
17.3. Class File
17.4. Case Study: A Credit-Inquiry Program
17.5. Object Serialization
17.6. Additional java.io Classes
17.7. Opening Files with JFileChooser
17.8. Wrap-Up
Chapter 18. Recursion
18.1. Introduction
18.2. Recursion Concepts
18.3. Example Using Recursion: Factorials
18.4. Example Using Recursion: Fibonacci Series
18.5. Recursion and the Method-Call Stack
18.6. Recursion vs Iteration
18.7. Towers of Hanoi
18.8. Fractals
18.9. Recursive Backtracking
18.10. Wrap-Up
Chapter 19. Searching, Sorting ang Big O
19.1. Introduction
19.2. Searching Algorithms
19.3. Sorting Algorithms
19.4. Wrap-Up
Chapter 20. Generic Collections
20.1. Introduction
20.2. Collections Overview
20.3. Type-Wrapper Classes for Primitive Types
20.4. Auto Boxing and Auto-Unboxing
20.5. Interface Collection and Class Collections
20.6. Lists
20.7. Collections Methods
20.8. Stack Class of Package java.util
20.9. Class PriorityQueue and Interface Queue
20.10. Sets
20.11. Maps
20.12. Properties Class
20.13. Synchronized Collections
20.14. Unmodifiable Collections
20.15. Absract Implementations
20.16. Wrap-Up
Chapter 21. Generic Classes and Methods
21.1. Introduction
21.2. Motivation for Generic Methods
21.3. Generic Methods: Implementation and Compile-Time Translation
21.4. Additional Compile-time Translation Issues: Methods that Use a Type Parameter as the Run Type
21.5. Overloading Generic Methods
21.6. Generic Classes
21.7. Raw Types
21.8. Wildcards in Methods That Accept Type Parameters
21.9. Generics and Inheritance: Notes
21.10. Wrap-Up
Chapter 22. Custom Generic Data Structures
22.1. Introduction
22.2. Self-referential Classes
22.3. Dynamic Memory Allocation
22.4. Linked Lists
22.5. Stacks
22.6. Queues
22.7. Trees
22.8. Wrap-Up
Chapter 23. Applets and Java Web Start
23.1. Introduction
23.2. Sample Applets Provided with JDK
23.3. Simple Java Applet: Drawing a String
23.4. Applet Life-Cycle Methods
23.5. Initializating an Instance Variable with Method init
23.6. Sandbox Security Model
23.7. Java Web Start and Java network Launch Protocol (JNLP)
23.8. Wrap-up
Chapter 24. Multimedia: Applets and Applications
24.1. Introduction
24.2. Loading, Displaying and Scaling Images
24.3. Animating a Series of Images
24.4. Image Maps
24.5. Loading and Playing Audio Clips
24.6. Playing Video and Other Media with Java Media Framework
24.7. Wrap-Up
24.8. Web Resources
Chapter 25. GUI Components: Part 2
25.1. Introduction
25.2. JSlider
25.3. Windows: Additional Notes
25.4. USing Menu with Frames
25.5. JPopMenu
25.6. Plugabble Look-and-Feel
25.7. JDesktopPane and JInternalFrame
25.8. JTabbedPane
25.9. Layout Manager: BoxLayout and GridBagLayout
25.10. Wrap-Up
No other version available