Book description
With a variety of interactive learning features and user-friendly pedagogy, Java 6 Illuminated, Second Edition provides a comprehensive introduction to programming using the most current version in Java programming. Throughout the text the authors incorporate an “active learning approach” which asks students to take an active role in their understanding of the language through the use of numerous interactive examples, exercises, and projects. Object-Oriented Programming concepts are developed progressively and reinforced through numerous Programming Activities, allowing students to fully understand and implement both basic and sophisticated techniques. In response to students growing interest in animation and visualization the text includes techniques for producing graphical output and animations beginning in Chapter 4 with applets and continuing throughout the text. You will find Java 6 Illuminated, Second Edition comprehensive and user-friendly. Students will find it exciting to delve into the world of programming with hands-on, real-world applications!
Table of contents
- Book Cover
- Title
- Copyright
- Preface (1/3)
- Preface (2/3)
- Preface (3/3)
- Acknowledgments
- Contents (1/3)
- Contents (2/3)
- Contents (3/3)
- Chapter 1 Introduction to Programming and the Java Language
-
Chapter 2 Programming Building Blocks—Java Basics
- 2.1 Java Application Structure
- 2.2 Data Types, Variables, and Constants
- 2.3 Programming Activity 1: Exploring Data Types
- 2.4 Expressions and Arithmetic Operators
- 2.5 Programming Activity 2: Exercising the Arithmetic Operators
- 2.6 Chapter Summary
- 2.7 Exercises, Problems, and Projects (1/2)
- 2.7 Exercises, Problems, and Projects (2/2)
-
Chapter 3 Object-Oriented Programming, Part 1: Using Classes
- 3.1 Class Basics and Benefits
- 3.2 Creating Objects Using Constructors
- 3.3 Calling Methods
- 3.4 Using Object References
- 3.5 Programming Activity 1: Calling Methods
- 3.6 The Java Class Library
- 3.7 The String Class
- 3.8 Formatting Output with the DecimalFormat Class
- 3.9 Generating Random Numbers with the Random Class
- 3.10 Input from the Console Using the Scanner Class (1/2)
- 3.10 Input from the Console Using the Scanner Class (2/2)
- 3.11 Calling Static Methods and Using Static Class Variables
- 3.12 Using System.in and System.out
- 3.13 The Math Class
- 3.14 Formatting Output with the NumberFormat Class
- 3.15 The Integer, Double, and Other Wrapper Classes
- 3.16 Input and Output Using JOptionPane Dialog Boxes
- 3.17 Programming Activity 2: Using Predefined Classes
- 3.18 Chapter Summary
- 3.19 Exercises, Problems, and Projects (1/3)
- 3.19 Exercises, Problems, and Projects (2/3)
- 3.19 Exercises, Problems, and Projects (3/3)
-
Chapter 4 Introduction to Applets and Graphics
- 4.1 Applet Structure
- 4.2 Executing an Applet
- 4.3 Drawing Shapes with Graphics Methods (1/3)
- 4.3 Drawing Shapes with Graphics Methods (2/3)
- 4.3 Drawing Shapes with Graphics Methods (3/3)
- 4.4 Using Color (1/2)
- 4.4 Using Color (2/2)
- 4.5 Programming Activity 1: Writing an Applet with Graphics
- 4.6 Chapter Summary
- 4.7 Exercises, Problems, and Projects (1/2)
- 4.7 Exercises, Problems, and Projects (2/2)
-
Chapter 5 Flow of Control, Part 1: Selection
- 5.1 Forming Conditions
- 5.2 Simple Selection with if
- 5.3 Selection Using if/else
- 5.4 Selection Using if/else if
- 5.5 Sequential and Nested if/else Statements
- 5.6 Testing Techniques for if/else Statements
- 5.7 Programming Activity 1: Working with if/else
- 5.8 Comparing Floating-Point Numbers (1/2)
- 5.8 Comparing Floating-Point Numbers (2/2)
- 5.9 Comparing Objects
- 5.10 The Conditional Operator (?:)
- 5.11 The switch Statement (1/2)
- 5.11 The switch Statement (2/2)
- 5.12 Programming Activity 2: Using the switch Statement
- 5.13 Chapter Summary
- 5.14 Exercises, Problems, and Projects (1/3)
- 5.14 Exercises, Problems, and Projects (2/3)
- 5.14 Exercises, Problems, and Projects (3/3)
-
Chapter 6 Flow of Control, Part 2: Looping
- 6.1 Event-Controlled Loops Using while
- 6.2 General Form for while Loops
- 6.3 Event-Controlled Looping
- 6.4 Looping Techniques
- 6.5 Type-Safe Input Using Scanner
- 6.6 Constructing Loop Conditions (1/2)
- 6.6 Constructing Loop Conditions (2/2)
- 6.7 Testing Techniques for while Loops
- 6.8 Event-Controlled Loops Using do/while
- 6.9 Programming Activity 1: Using while Loops
- 6.10 Count-Controlled Loops Using for
- 6.11 Nested Loops (1/2)
- 6.11 Nested Loops (2/2)
- 6.12 Programming Activity 2: Using for Loops
- 6.13 Summary
- 6.14 Exercises, Problems, and Projects (1/3)
- 6.14 Exercises, Problems, and Projects (2/3)
- 6.14 Exercises, Problems, and Projects (3/3)
-
Chapter 7 Object-Oriented Programming, Part 2: User-Defined Classes
- 7.1 Defining a Class
- 7.2 Defining Instance Variables
- 7.3 Writing Class Methods
- 7.4 Writing Constructors (1/2)
- 7.4 Writing Constructors (2/2)
- 7.5 Writing Accessor Methods
- 7.6 Writing Mutator Methods
- 7.7 Writing Data Manipulation Methods
- 7.8 Programming Activity 1: Writing a Class Definition, Part 1
- 7.9 The Object Reference this
- 7.10 The toString and equals Methods (1/2)
- 7.10 The toString and equals Methods (2/2)
- 7.11 Static Class Members (1/2)
- 7.11 Static Class Members (2/2)
- 7.12 Graphical Objects (1/2)
- 7.12 Graphical Objects (2/2)
- 7.13 Enumeration Types (1/2)
- 7.13 Enumeration Types (2/2)
- 7.14 Programming Activity 2: Writing a Class Definition, Part 2
- 7.15 Creating Packages (1/2)
- 7.15 Creating Packages (2/2)
- 7.16 Generating Web-Style Documentation with Javadoc (1/2)
- 7.16 Generating Web-Style Documentation with Javadoc (2/2)
- 7.17 Chapter Summary
- 7.18 Exercises, Problems, and Projects (1/4)
- 7.18 Exercises, Problems, and Projects (2/4)
- 7.18 Exercises, Problems, and Projects (3/4)
- 7.18 Exercises, Problems, and Projects (4/4)
-
Chapter 8 Single-Dimensional Arrays
- 8.1 Declaring and Instantiating Arrays
- 8.2 Accessing Array Elements
- 8.3 Aggregate Array Operations
- 8.4 Programming Activity 1: Working with Arrays
- 8.5 Using Arrays in Classes
- 8.6 Searching and Sorting Arrays
- 8.7 Programming Activity 2: Searching and Sorting Arrays
- 8.8 Using Arrays as Counters
- 8.9 Chapter Summary
- 8.10 Exercises, Problems, and Projects (1/4)
- 8.10 Exercises, Problems, and Projects (2/4)
- 8.10 Exercises, Problems, and Projects (3/4)
- 8.10 Exercises, Problems, and Projects (4/4)
-
Chapter 9 Multidimensional Arrays and the ArrayList Class
- 9.1 Declaring and Instantiating Multidimensional Arrays
- 9.2 Accessing Multidimensional Array Elements (1/2)
- 9.2 Accessing Multidimensional Array Elements (2/2)
-
9.3 Aggregate Two-Dimensional Array Operations
- 9.3.1 Processing All the Elements of a Two-Dimensional Array
- 9.3.2 Processing a Given Row of a Two-Dimensional Array
- 9.3.3 Processing a Given Column of a Two-Dimensional Array
- 9.3.4 Processing a Two-Dimensional Array One Row at a Time
- 9.3.5 Processing a Two-Dimensional Array One Column at a Time
- 9.3.6 Displaying Two-Dimensional Array Data as a Bar Chart
- 9.4 Two-Dimensional Arrays Passed to and Returned from Methods
- 9.5 Programming Activity 1: Working with Two-Dimensional Arrays
- 9.6 Other Multidimensional Arrays
- 9.7 The ArrayList Class
- 9.8 Programming Activity 2: Working with the ArrayList Class
- 9.9 Chapter Summary
- 9.10 Exercises, Problems, and Projects (1/5)
- 9.10 Exercises, Problems, and Projects (2/5)
- 9.10 Exercises, Problems, and Projects (3/5)
- 9.10 Exercises, Problems, and Projects (4/5)
- 9.10 Exercises, Problems, and Projects (5/5)
-
Chapter 10 Object-Oriented Programming, Part 3: Inheritance, Polymorphism, and Interfaces
- 10.1 Inheritance
- 10.2 Inheritance Design
- 10.3 The protected Access Modifier (1/2)
- 10.3 The protected Access Modifier (2/2)
- 10.4 Programming Activity 1: Using Inheritance
- 10.5 Abstract Classes and Methods (1/2)
- 10.5 Abstract Classes and Methods (2/2)
- 10.6 Polymorphism
- 10.7 Programming Activity 2: Using Polymorphism
- 10.8 Interfaces (1/2)
- 10.8 Interfaces (2/2)
- 10.9 Chapter Summary
- 10.10 Exercises, Problems, and Projects (1/4)
- 10.10 Exercises, Problems, and Projects (2/4)
- 10.10 Exercises, Problems, and Projects (3/4)
- 10.10 Exercises, Problems, and Projects (4/4)
-
Chapter 11 Exceptions and Input/Output Operations
- 11.1 Simple Exception Handling
- 11.2 The java.io Package
- 11.3 Reading and Writing Text Files
- 11.4 Reading Structured Text Files
- 11.5 Programming Activity 1: Reading from a Structured Text File
- 11.6 Writing and Appending to Structured Text Files
- 11.7 Reading and Writing Objects to a File
- 11.8 Programming Activity 2: Reading Objects from a File
- 11.9 Chapter Summary
- 11.10 Exercises, Problems, and Projects (1/5)
- 11.10 Exercises, Problems, and Projects (2/5)
- 11.10 Exercises, Problems, and Projects (3/5)
- 11.10 Exercises, Problems, and Projects (4/5)
- 11.10 Exercises, Problems, and Projects (5/5)
-
Chapter 12 Graphical User Interfaces
- 12.1 GUI Applications Using JFrame
- 12.2 GUI Components
- 12.3 A Simple Component: JLabel
- 12.4 Event Handling
- 12.5 Text Fields (1/2)
- 12.5 Text Fields (2/2)
- 12.6 Command Buttons
- 12.7 Radio Buttons and Checkboxes (1/2)
- 12.7 Radio Buttons and Checkboxes (2/2)
- 12.8 Programming Activity 1: Working with Buttons
- 12.9 Lists
- 12.10 Combo Boxes (1/2)
- 12.10 Combo Boxes (2/2)
- 12.11 Adapter Classes
- 12.12 Mouse Movements (1/3)
- 12.12 Mouse Movements (2/3)
- 12.12 Mouse Movements (3/3)
- 12.13 Layout Managers: GridLayout (1/3)
- 12.13 Layout Managers: GridLayout (2/3)
- 12.13 Layout Managers: GridLayout (3/3)
- 12.14 Layout Managers: BorderLayout (1/2)
- 12.14 Layout Managers: BorderLayout (2/2)
- 12.15 Using Panels to Nest Components (1/2)
- 12.15 Using Panels to Nest Components (2/2)
- 12.16 Programming Activity 2: Working with Layout Managers
- 12.17 Chapter Summary
- 12.18 Exercises, Problems, and Projects (1/5)
- 12.18 Exercises, Problems, and Projects (2/5)
- 12.18 Exercises, Problems, and Projects (3/5)
- 12.18 Exercises, Problems, and Projects (4/5)
- 12.18 Exercises, Problems, and Projects (5/5)
-
Chapter 13 Recursion
- 13.1 Simple Recursion: Identifying the General and Base Cases
- 13.2 Recursion with a Return Value
- 13.3 Recursion with Two Base Cases
- 13.4 Programming Activity 1: Checking for a Palindrome
- 13.5 Binary Search Revisited: A Recursive Solution
- 13.6 Programming Activity 2: The Towers of Hanoi
- 13.7 Animation Using Recursion
- 13.8 Recursion Versus Iteration
- 13.9 Chapter Summary
- 13.10 Exercises, Problems, and Projects (1/4)
- 13.10 Exercises, Problems, and Projects (2/4)
- 13.10 Exercises, Problems, and Projects (3/4)
- 13.10 Exercises, Problems, and Projects (4/4)
-
Chapter 14 An Introduction to Data Structures
- 14.1 Linked Lists
- 14.2 Linked Lists of Objects
- 14.3 Implementing a Stack Using a Linked List
- 14.4 Implementing a Queue Using a Linked List
- 14.5 Array Representation of Stacks
- 14.6 Programming Activity 1: Writing Methods for a Stack Class
- 14.7 Array Representation of Queues
- 14.8 Sorted Linked Lists (1/2)
- 14.8 Sorted Linked Lists (2/2)
- 14.9 Programming Activity 2: Writing Insert and Delete Methods for a Sorted Linked List
- 14.10 Doubly Linked Lists
- 14.11 Linked Lists Using Generic Types (1/2)
- 14.11 Linked Lists Using Generic Types (2/2)
- 14.12 Recursively Defined Linked Lists (1/2)
- 14.12 Recursively Defined Linked Lists (2/2)
- 14.13 Chapter Summary
- 14.14 Exercises, Problems, and Projects (1/5)
- 14.14 Exercises, Problems, and Projects (2/5)
- 14.14 Exercises, Problems, and Projects (3/5)
- 14.14 Exercises, Problems, and Projects (4/5)
- 14.14 Exercises, Problems, and Projects (5/5)
-
Chapter 15 Running Time Analysis
- 15.1 Orders of Magnitude and Big-Oh Notation
- 15.2 Running Time Analysis of Algorithms: Counting Statements
- 15.3 Running Time Analysis of Algorithms and Impact of Coding: Evaluating Recursive Methods
- 15.4 Programming Activity: Tracking How Many Statements Are Executed by a Method
- 15.5 Running Time Analysis of Searching and Sorting Algorithms
- 15.6 Chapter Summary
- 15.7 Exercises, Problems, and Projects (1/2)
- 15.7 Exercises, Problems, and Projects (2/2)
- Appendix A: Java Reserved Words and Keywords
- Appendix B: Operator Precedence
- Appendix C: The Unicode Character Set
- Appendix D: Representing Negative Integers
- Appendix E: Representing Floating-Point Numbers
-
Appendix F: Java Classes APIs
- ActionEvent
- ActionListener Interface
- ArrayList
- BigDecimal
- BorderLayout
- BufferedWriter
- ButtonGroup
- Color
- Container
- DecimalFormat
- Double
- Enum
- Exception
- File
- FileOutputStream
- FileWriter
- FlowLayout
- Graphics
- GridLayout
- Integer
- ItemEvent
- ItemListener Interface
- JButton
- JCheckBox
- JComboBox
- JComponent
- JFrame
- JLabel
- JList
- JOptionPane
- JPasswordField
- JRadioButton
- JTextArea
- JTextField
- ListSelectionListener Interface
- Math
- MouseEvent
- MouseListener Interface
- MouseMotionListener Interface
- NumberFormat
- ObjectInputStream
- ObjectOutputStream
- Polygon
- PrintWriter
- Random
- Scanner
- String
- StringTokenizer
- System
- System.out
- Appendix G: Solutions to Selected Exercises (1/4)
- Appendix G: Solutions to Selected Exercises (2/4)
- Appendix G: Solutions to Selected Exercises (3/4)
- Appendix G: Solutions to Selected Exercises (4/4)
- Index (1/6)
- Index (2/6)
- Index (3/6)
- Index (4/6)
- Index (5/6)
- Index (6/6)
Product information
- Title: Java 6 Illuminated: An Active Learning Approach, 2nd Edition
- Author(s):
- Release date: February 2008
- Publisher(s): Jones & Bartlett Learning
- ISBN: 9780763762001
You might also like
book
Java Illuminated, 3rd Edition
With a variety of interactive learning features and user-friendly pedagogy, the Third Edition provides a comprehensive …
book
Ivor Horton's Beginning Java®, Java 7 Edition
Ivor Horton's approach is teaching Java is so effective and popular that he is one of …
book
Oracle JDeveloper 10g Handbook
Create web and database applications with Oracle JDeveloper 10g--the complete, integrated Java development environment--with help from …
book
The Java EE 6 Tutorial: Basic Concepts, Fourth Edition
is a task-oriented, example-driven guide to developing enterprise applications for the Java Platform, Enterprise Edition 6 …