We use cookies to ensure you get the best experience on our website. Please review our cookie policy for details.

Java® All-in-One For Dummies®

Lessons
Lab
TestPrep
AI Tutor (Add-on)
Get A Free Trial

About This Course

Skills You’ll Get

1

Introduction

  • About This Course
  • False Assumptions
  • Icons Used in This course
  • Beyond the Course
  • Where to Go from Here
2

Welcome to Java

  • What Is Java, and Why Is It So Great?
  • Important Features of the Java Language
  • Java Version Insanity
  • What’s in a Name?
3

Installing and Using Java Tools

  • Downloading and Installing the Java Development Kit
  • Confirming Your Java Version
  • Using Java’s Command-Line Tools
  • Using Java Documentation
4

Working with TextPad

  • Downloading and Installing TextPad
  • Editing Source Files
  • Compiling a Program
  • Running a Java Program
5

Java Programming Basics

  • Looking at the Venerable Hello, World! Program
  • Dealing with Keywords
  • Working with Statements
  • Working with Blocks
  • Creating Identifiers
  • Crafting Comments
  • Introducing Object-Oriented Programming
  • Importing Java API Classes
6

Working with Variables and Data Types

  • Declaring Variables
  • Initializing Variables
  • Using Final Variables (Constants)
  • Working with Primitive Data Types
  • Working with Strings
  • Converting and Casting Numeric Data
  • Thinking Inside the Box
  • Understanding Scope
  • Shadowing Variables
  • Printing Data with System.out
  • Getting Input with the Scanner Class
  • Getting Input with the JOptionPane Class
  • Using enum to Create Your Own Data Types
7

Working with Numbers and Expressions

  • Working with Arithmetic Operators
  • Dividing Integers
  • Combining Operators
  • Using the Unary Plus and Minus Operators
  • Using Increment and Decrement Operators
  • Using the Assignment Operator
  • Using Compound Assignment Operators
  • Using the Math Class
  • Formatting Numbers
  • Recognizing Weird Things about Java Math
8

Making Choices

  • Using Simple Boolean Expressions
  • Using if Statements
  • Using Mr. Spock’s Favorite Operators (Logical Ones, of Course)
  • Using the Conditional Operator
  • Comparing Strings
9

Going Around in Circles (or, Using Loops)

  • Using Your Basic while Loop
  • Breaking Out of a Loop
  • Looping Forever
  • Using the continue Statement
  • Running do-while Loops
  • Validating Input from the User
  • Using the Famous for Loop
  • Nesting Your Loops
10

Pulling a Switcheroo

  • Battling else-if Monstrosities
  • Using the switch Statement
  • Creating Character Cases
  • Matching Two or More Values in a Single Case Group
  • Intentionally Leaving Out a Break Statement
  • Switching with Strings
  • Assigning a Value with a Switch Statement
11

Adding Some Methods to Your Madness

  • The Joy of Methods
  • The Basics of Making Methods
  • Methods That Return Values
  • Methods That Take Parameters
12

Handling Exceptions

  • Understanding Exceptions
  • Catching Exceptions
  • Handling Exceptions with a Preemptive Strike
  • Catching All Exceptions at Once
  • Displaying the Exception Message
  • Using a finally Block
  • Handling Checked Exceptions
  • Throwing Your Own Exceptions
  • Using the try-with-resources Statement
13

Understanding Object-Oriented Programming

  • What Is Object-Oriented Programming?
  • Understanding Objects
  • Understanding the Life Cycle of an Object
  • Working with Related Classes
  • Designing a Program with Objects
  • Diagramming Classes with UML
14

Making Your Own Classes

  • Declaring a Class
  • Working with Members
  • Using Getters and Setters
  • Overloading Methods
  • Creating Constructors
  • Finding More Uses for the this Keyword
  • Using Initializers
  • Using Records
15

Working with Statics

  • Understanding Static Fields and Methods
  • Working with Static Fields
  • Using Static Methods
  • Counting Instances
  • Preventing Instances
  • Using Static Initializers
16

Using Subclasses and Inheritance

  • Introducing Inheritance
  • Creating Subclasses
  • Overriding Methods
  • Protecting Your Members
  • Using the this and super Keywords in Your Subclasses
  • Understanding Inheritance and Constructors
  • Using the final Keyword
  • Casting Up and Down
  • Determining an Object’s Type
  • Poly What?
  • Creating Custom Exceptions
17

Using Abstract Classes and Interfaces

  • Using Abstract Classes
  • Using Interfaces
  • More Things You Can Do with Interfaces
  • Using Additional Interface Method Types
  • Two Interfaces That Enable Java Language Features
  • Sealing Your Classes
18

Using the Object and Class Classes

  • The Mother of All Classes: Object
  • The toString Method
  • The equals Method
  • The clone Method
  • The Class Class
  • Using the instanceof Operator
19

Using Inner Classes and Anonymous Classes

  • Declaring Inner Classes
  • Using Static Inner Classes
  • Using Anonymous Inner Classes
20

Working with Packages and the Java Module System

  • Working with Packages
  • Putting Your Classes in a JAR File
  • Using Javadoc to Document Your Classes
  • Using the Java Module System
21

Working with Strings

  • Reviewing Strings
  • Using the String Class
  • Determining Whether a String Is Empty
  • Using the StringBuilder and StringBuffer Classes
  • Using the CharSequence Interface
  • Using Text Blocks
22

Using Regular Expressions

  • Creating a Program for Experimenting with Regular Expressions
  • Performing Basic Character Matching
  • Using Regular Expressions in Java Programs
23

Working with Dates and Times

  • Pondering How Time Is Represented
  • Picking the Right Date and Time Class for Your Application
  • Using the now Method to Create a Date-Time Object
  • Using the parse Method to Create a Date-Time Object
  • Using the of Method to Create a Date-Time Object
  • Looking Closer at the LocalDate Class
  • Extracting Information about a Date
  • Comparing Dates
  • Calculating with Dates
  • Formatting Dates
  • Looking at a Fun Birthday Calculator
24

Using the BigDecimal Class

  • Seeing Why Java Can’t Add
  • BigDecimal to the Rescue!
  • Creating BigDecimal Objects
  • Doing BigDecimal Arithmetic
  • Rounding BigDecimal Values
  • Comparing BigDecimal Values
  • Converting BigDecimals to Strings
  • Revisiting Sales Tax
25

Introducing Data Structures

  • Imagining Models of Computation
  • Defining Data Structures
  • Quantifying Performance
  • Analyzing Arrays
  • Looking at Linked Lists
  • Doubling Down with Doubly Linked Lists
  • Surmising Stacks, Queues, and Deques
  • Musing about Maps
  • Checking Out Hash Maps
  • Tackling Trees
  • Checking Out Binary Trees
26

Using Arrays

  • Understanding Arrays
  • Creating Arrays
  • Initializing an Array
  • Using for Loops with Arrays
  • Solving Homework Problems with Arrays
  • Using the Enhanced for Loop
  • Using Arrays with Methods
  • Using Varargs
  • Using Two-Dimensional Arrays
  • Working with a Fun but Complicated Example: A Chessboard
  • Using the Arrays Class
27

Using the ArrayList Class

  • Understanding the ArrayList Class
  • Creating an ArrayList Object
  • Adding Elements
  • Accessing Elements
  • Printing an ArrayList
  • Using an Iterator
  • Updating Elements
  • Deleting Elements
28

Using the LinkedList Class

  • Understanding the LinkedList Class
  • Creating a LinkedList
  • Adding Items to a LinkedList
  • Retrieving Items from a LinkedList
  • Updating LinkedList Items
  • Removing LinkedList Items
29

Creating Generic Collection Classes

  • Why Generics?
  • Creating a Generic Class
  • A Generic Stack Class
  • Using Wildcard-Type Parameters
  • A Generic Queue Class
30

Using Maps and Trees

  • Mastering Maps
  • Using the HashMap Class
  • Removing Entries from a Hash Map
  • Using the TreeMap Class
31

Introducing Algorithms

  • What Is an Algorithm?
  • Classifying Algorithms
  • Some Fun Algorithm Challenges
32

Using Recursion

  • Calculating the Classic Factorial Example
  • Displaying Directories
  • Playing the Towers of Hanoi
33

Sorting

  • Looking at the Bubble Sort Algorithm
  • Introducing the Quicksort Algorithm
34

Searching

  • Creating a Data Structure Worth Searching
  • Looking at Linear Searching
  • Using a Binary Search
35

Programming Threads

  • Understanding Threads
  • Creating a Thread
  • Implementing the Runnable Interface
  • Creating Threads That Work Together
  • Using an Executor
  • Synchronizing Methods
  • Creating a Lock
  • Coping with Threadus Interruptus
36

Using Functional Programming and Lambda Expressions

  • Introducing Functional Programming
  • Introducing Functional Interfaces
  • Using Lambda Expressions
  • Passing Parameters via Lambda Expressions
  • Using Block Lambda Expressions
  • Using the java.util.function Package
37

Consuming Web Services with HttpClient

  • Introducing Web Services
  • Understanding HTTP
  • Getting Started with Java’s HTTP Client Library
  • Putting It All Together
  • The HTTP Tester Program
38

Hello, JavaFX!

  • Perusing the Possibilities of JavaFX
  • Getting Ready to Run JavaFX
  • Looking at a Simple JavaFX Program
  • Importing JavaFX Packages
  • Extending the Application Class
  • Launching the Application
  • Overriding the start Method
  • Creating a Button
  • Handling an Action Event
  • Creating a Layout Pane
  • Making a Scene
  • Setting the Stage
  • Examining the Click Counter Program
39

Handling Events

  • Examining Events
  • Handling Events
  • Implementing the EventHandler Interface
  • Handling Events with Inner Classes
  • Handling Events with Anonymous Inner Classes
  • Using Lambda Expressions to Handle Events
40

Setting the Stage and Scene Layout

  • Examining the Stage Class
  • Examining the Scene Class
  • Switching Scenes
  • Creating an Alert Box
  • Exit, Stage Right
41

Using Layout Panes to Arrange Your Scenes

  • Working with Layout Panes
  • Using the HBox Layout
  • Spacing Things Out
  • Adding Space with Margins
  • Adding Space by Growing Nodes
  • Using the VBox Layout
  • Aligning Nodes in a Layout Pane
  • Using the Flow Layout
  • Using the Border Layout
  • Using the GridPane Layout
42

Getting Input from the User

  • Using Text Fields
  • Validating Numeric Data
  • Using Check Boxes
  • Using Radio Buttons
43

Choosing from a List

  • Using Choice Boxes
  • Working with Observable Lists
  • Listening for Selection Changes
  • Using Combo Boxes
  • Using List Views
  • Using Tree Views

1

Installing and Using Java Tools

2

Java Programming Basics

3

Working with Variables and Data Types

4

Working with Numbers and Expressions

5

Making Choices

6

Making Your Own Classes

7

Working with Statics

8

Using Subclasses and Inheritance

9

Using Abstract Classes and Interfaces

10

Using the Object and Class Classes

11

Using Inner Classes and Anonymous Classes

12

Working with Packages and the Java Module System

13

Working with Strings

14

Using Regular Expressions

15

Working with Dates and Times

16

Using the BigDecimal Class

17

Introducing Data Structures

18

Using Arrays

19

Using the ArrayList Class

20

Using the LinkedList Class

21

Creating Generic Collection Classes

22

Using Maps and Trees

23

Using Recursion

24

Sorting

25

Searching

26

Programming Threads

27

Using Functional Programming and Lambda Expressions

28

Consuming Web Services with HttpClient

29

Hello, JavaFX!

30

Handling Events

31

Setting the Stage and Scene Layout

32

Using Layout Panes to Arrange Your Scenes

33

Getting Input from the User

34

Choosing from a List

Java® All-in-One For Dummies®

$ 139.99

Buy Now

Related Courses

All Course
scroll to top