Java Programming.
Main Author: | |
---|---|
Format: | eBook |
Language: | English |
Published: |
Mason, OH :
Cengage,
2018.
|
Edition: | 9th ed. |
Subjects: | |
Online Access: | View fulltext via EzAccess |
Table of Contents:
- Cover
- Brief Contents
- Table of Contents
- Preface
- Features
- Assessment
- Chapter 1: Creating Java Programs
- Learning Programming Terminology
- Comparing Procedural and Object-Oriented Programming Concepts
- Features of the Java Programming Language
- Analyzing a Java Application That Produces Console Output
- Compiling a Java Class and Correcting Syntax Errors
- Running a Java Application and Correcting Logic Errors
- Adding Comments to a Java Class
- Creating a Java Application That Produces GUI Output
- Finding Help
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 2: Using Data
- Declaring and Using Constants and Variables
- Using the boolean Data Type
- Learning about Floating-Point Data Types
- Using the char Data Type
- Using the Scanner Class to Accept Keyboard Input
- Using the JOptionPane Class to Accept GUI Input
- Performing Arithmetic Using Variables and Constants
- Understanding Type Conversion
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 3: Using Methods, Classes, and Objects
- Understanding Method Calls and Placement
- Understanding Method Construction
- Adding Parameters to Methods
- Creating Methods That Return Values
- Learning about Classes and Objects
- Creating a Class
- Creating Instance Methods in a Class
- Declaring Objects and Using Their Methods
- An Introduction to Using Constructors
- Understanding That Classes Are Data Types
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 4: More Object Concepts
- Understanding Blocks and Scope
- Overloading a Method
- Learning about Ambiguity
- Creating and Calling Constructors with Parameters
- Learning about the this Reference
- Using static Fields
- Using Automatically Imported, Prewritten Constants and Methods
- Understanding Composition and Nested Classes.
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 5: Making Decisions
- Planning Decision-Making Logic
- The if and if...else Statements
- Using Multiple Statements in if and if...else Clauses
- Nesting if and if...else Statements
- Using Logical AND and OR Operators
- Making Accurate and Efficient Decisions
- Using the switch Statement
- Using the Conditional and NOT Operators
- Understanding Operator Precedence
- Adding Decisions and Constructors to Instance Methods
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 6: Looping
- Learning about the Loop Structure
- Creating while Loops
- Using Shortcut Arithmetic Operators
- Creating a for Loop
- Learning How and When to Use a do...while Loop
- Learning about Nested Loops
- Improving Loop Performance
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 7: Characters, Strings, and the StringBuilder
- Understanding String Data Problems
- Using Character Class Methods
- Declaring and Comparing String Objects
- Using a Variety of String Methods
- Learning about the StringBuilder and StringBuffer Classes
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 8: Arrays
- Declaring an Array
- Initializing an Array
- Using Variable Subscripts with an Array
- Declaring and Using Arrays of Objects
- Searching an Array and Using Parallel Arrays
- Passing Arrays to and Returning Arrays from Methods
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 9: Advanced Array Concepts
- Sorting Array Elements Using the Bubble Sort Algorithm
- Sorting Array Elements Using the Insertion Sort Algorithm
- Using Two-Dimensional and Other Multidimensional Arrays
- Using the Arrays Class
- Using the ArrayList Class
- Creating Enumerations
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises.
- Chapter 10: Introduction to Inheritance
- Learning about the Concept of Inheritance
- Extending Classes
- Overriding Superclass Methods
- Calling Constructors during Inheritance
- Accessing Superclass Methods
- Employing Information Hiding
- Methods You Cannot Override
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 11: Advanced Inheritance Concepts
- Creating and Using Abstract Classes
- Using Dynamic Method Binding
- Creating Arrays of Subclass Objects
- Using the Object Class and Its Methods
- Using Inheritance to Achieve Good Software Design
- Creating and Using Interfaces
- Using Anonymous Inner Classes and Lambda Expressions
- Creating and Using Packages
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 12: Exception Handling
- Learning about Exceptions
- Trying Code and Catching Exceptions
- Throwing and Catching Multiple Exceptions
- Using the finally Block
- Understanding the Advantages of Exception Handling
- Specifying the Exceptions That a Method Can Throw
- Tracing Exceptions through the Call Stack
- Creating Your Own Exception Classes
- Using Assertions
- Displaying the Virtual Keyboard
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 13: File Input and Output
- Understanding Computer Files
- Using the Path and Files Classes
- File Organization, Streams, and Buffers
- Using Java's IO Classes
- Creating and Using Sequential Data Files
- Learning about Random Access Files
- Writing Records to a Random Access Data File
- Reading Records from a Random Access Data File
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 14: Introduction to Swing Components
- Understanding Swing Components
- Using the JFrame Class
- Using the JLabel Class
- Using a Layout Manager
- Extending the JFrame Class.
- Adding JTextFields and JButtons to a JFrame
- Learning about Event-Driven Programming
- Understanding Swing Event Listeners
- Using the JCheckBox, ButtonGroup, and JComboBox Classes
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Chapter 15: Using JavaFX and Scene Builder
- What Is JavaFX?
- The Life Cycle of JavaFX Applications
- Understanding JavaFX Structure: Stage, Scene, Panes, and Widgets
- Deploying JavaFX Applications
- Creating JavaFX Applications Using Scene Builder
- Using CSS to Create Visual Effects
- Creating Animations in JavaFX
- Don't Do It
- Key Terms
- Chapter Summary
- Exercises
- Appendix A: Working with the Java Platform
- Appendix B: Data Representation
- Appendix C: Formatting Output
- Appendix D: Generating Random Numbers
- Appendix E: Javadoc
- Glossary
- Index.