Skip to content
Home
Programs
Close Programs
Open Programs
Cybersecurity
Courses
Community
News
Knowledgebase
GIS
Courses
Community
News
Knowledgebase
Agile Methodologies
Courses
Community
News
Knowledgebase
Catalog
About
Contact Us
Login
Sign Up
$
0.00
0
Cart
Login
Sign Up
$
0.00
0
Cart
Login
Sign Up
$
0.00
0
Cart
Home
All Programs
Java All-in-One
Java All-in-One
Curriculum
51 Sections
278 Lessons
10 Weeks
Expand all sections
Collapse all sections
Introduction
5
1.1
About This Book
1.2
Foolish Assumptions
1.3
Icons Used in This Book
1.4
Beyond the Book
1.5
Where to Go from Here
Book 1: Java Basics
0
Chapter 1: Welcome to Java
4
3.1
What Is Java, and Why Is It So Great?
3.2
Important Features of the Java Language
3.3
Java Version Insanity
3.4
What’s in a Name?
Chapter 2: Installing and Using Java Tools
4
4.1
Downloading and Installing the Java Development Kit
4.2
Confirming Your Java Version
4.3
Using Java’s Command-Line Tools
4.4
Using Java Documentation
Chapter 3: Working with TextPad
4
5.1
Downloading and Installing TextPad
5.2
Editing Source Files
5.3
Compiling a Program
5.4
Running a Java Program
Book 2: Programming Basics
0
Chapter 1: Java Programming Basics
8
7.1
Looking at the Venerable Hello, World! Program
7.2
Dealing with Keywords
7.3
Working with Statements
7.4
Working with Blocks
7.5
Creating Identifiers
7.6
Crafting Comments
7.7
Introducing Object-Oriented Programming
7.8
Importing Java API Classes
Chapter 2: Working with Variables and Data Types
13
8.1
Declaring Variables
8.2
Initializing Variables
8.3
Using Final Variables (Constants)
8.4
Working with Primitive Data Types
8.5
Working with Strings
8.6
Converting and Casting Numeric Data
8.7
Thinking Inside the Box
8.8
Understanding Scope
8.9
Shadowing Variables
8.10
Printing Data with System.out
8.11
Getting Input with the Scanner Class
8.12
Getting Input with the JOptionPane Class
8.13
Using enum to Create Your Own Data Types
Chapter 3: Working with Numbers and Expressions
10
9.1
Working with Arithmetic Operators
9.2
Dividing Integers
9.3
Combining Operators
9.4
Using the Unary Plus and Minus Operators
9.5
Using Increment and Decrement Operators
9.6
Using the Assignment Operator
9.7
Using Compound Assignment Operators
9.8
Using the Math Class
9.9
Formatting Numbers
9.10
Recognizing Weird Things about Java Math
Chapter 4: Making Choices
5
10.1
Using Simple Boolean Expressions
10.2
Using if Statements
10.3
Using Mr. Spock’s Favorite Operators (Logical Ones, of Course)
10.4
Using the Conditional Operator
10.5
Comparing Strings
Chapter 5: Going Around in Circles (or, Using Loops)
8
11.1
Using Your Basic while Loop
11.2
Breaking Out of a Loop
11.3
Looping Forever
11.4
Using the continue Statement
11.5
Running do-while Loops
11.6
Validating Input from the User
11.7
Using the Famous for Loop
11.8
Nesting Your Loops
Chapter 6: Pulling a Switcheroo
7
12.1
Battling else-if Monstrosities
12.2
Using the switch Statement
12.3
Creating Character Cases
12.4
Matching Two or More Values in a Single Case Group
12.5
Intentionally Leaving Out a Break Statement
12.6
Switching with Strings
12.7
Assigning a Value with a Switch Statement
Chapter 7: Adding Some Methods to Your Madness
4
13.1
The Joy of Methods
13.2
The Basics of Making Methods
13.3
Methods That Return Values
13.4
Methods That Take Parameters
Chapter 8: Handling Exceptions
9
14.1
Understanding Exceptions
14.2
Catching Exceptions
14.3
Handling Exceptions with a Preemptive Strike
14.4
Catching All Exceptions at Once
14.5
Displaying the Exception Message
14.6
Using a finally Block
14.7
Handling Checked Exceptions
14.8
Throwing Your Own Exceptions
14.9
Using the try-with-resources Statement
Book 3: Object-Oriented Programming
0
Chapter 1: Understanding Object-Oriented Programming
6
16.1
What Is Object-Oriented Programming?
16.2
Understanding Objects
16.3
Understanding the Life Cycle of an Object
16.4
Working with Related Classes
16.5
Designing a Program with Objects
16.6
Diagramming Classes with UML
Chapter 2: Making Your Own Classes
8
17.1
Declaring a Class
17.2
Working with Members
17.3
Using Getters and Setters
17.4
Overloading Methods
17.5
Creating Constructors
17.6
Finding More Uses for the this Keyword
17.7
Using Initializers
17.8
Using Records
Chapter 3: Working with Statics
6
18.1
Understanding Static Fields and Methods
18.2
Working with Static Fields
18.3
Using Static Methods
18.4
Counting Instances
18.5
Preventing Instances
18.6
Using Static Initializers
Chapter 4: Using Subclasses and Inheritance
11
19.1
Introducing Inheritance
19.2
Creating Subclasses
19.3
Overriding Methods
19.4
Protecting Your Members
19.5
Using the this and super Keywords in Your Subclasses
19.6
Understanding Inheritance and Constructors
19.7
Using the final Keyword
19.8
Casting Up and Down
19.9
Determining an Object’s Type
19.10
Poly What?
19.11
Creating Custom Exceptions
Chapter 5: Using Abstract Classes and Interfaces
6
20.1
Using Abstract Classes
20.2
Using Interfaces
20.3
More Things You Can Do with Interfaces
20.4
Using Additional Interface Method Types
20.5
Two Interfaces That Enable Java Language Features
20.6
Sealing Your Classes
Chapter 6: Using the Object and Class Classes
6
21.1
The Mother of All Classes: Object
21.2
The toString Method
21.3
The equals Method
21.4
The clone Method
21.5
The Class Class
21.6
Using the instanceof Operator
Chapter 7: Using Inner Classes and Anonymous Classes
3
22.1
Declaring Inner Classes
22.2
Using Static Inner Classes
22.3
Using Anonymous Inner Classes
Chapter 8: Working with Packages and the Java Module System
4
23.1
Working with Packages
23.2
Putting Your Classes in a JAR File
23.3
Using Javadoc to Document Your Classes
23.4
Using the Java Module System
Book 4: Strings and Other Data Types
0
Chapter 1: Working with Strings
6
25.1
Reviewing Strings
25.2
Using the String Class
25.3
Determining Whether a String Is Empty
25.4
Using the StringBuilder and StringBuffer Classes
25.5
Using the CharSequence Interface
25.6
Using Text Blocks
Chapter 2: Using Regular Expressions
3
26.1
Creating a Program for Experimenting with Regular Expressions
26.2
Performing Basic Character Matching
26.3
Using Regular Expressions in Java Programs
Chapter 3: Working with Dates and Times
11
27.1
Pondering How Time Is Represented
27.2
Picking the Right Date and Time Class for Your Application
27.3
Using the now Method to Create a Date-Time Object
27.4
Using the parse Method to Create a Date-Time Object
27.5
Using the of Method to Create a Date-Time Object
27.6
Looking Closer at the LocalDate Class
27.7
Extracting Information about a Date
27.8
Comparing Dates
27.9
Calculating with Dates
27.10
Formatting Dates
27.11
Looking at a Fun Birthday Calculator
Chapter 4: Using the BigDecimal Class
8
28.1
Seeing Why Java Can’t Add
28.2
BigDecimal to the Rescue!
28.3
Creating BigDecimal Objects
28.4
Doing BigDecimal Arithmetic
28.5
Rounding BigDecimal Values
28.6
Comparing BigDecimal Values
28.7
Converting BigDecimals to Strings
28.8
Revisiting Sales Tax
Book 5: Data Structures
0
Chapter 1: Introducing Data Structures
11
30.1
Imagining Models of Computation
30.2
Defining Data Structures
30.3
Quantifying Performance
30.4
Analyzing Arrays
30.5
Looking at Linked Lists
30.6
Doubling Down with Doubly Linked Lists
30.7
Surmising Stacks, Queues, and Deques
30.8
Musing about Maps
30.9
Checking Out Hash Maps
30.10
Tackling Trees
30.11
Checking Out Binary Trees
Chapter 2: Using Arrays
11
31.1
Understanding Arrays
31.2
Creating Arrays
31.3
Initializing an Array
31.4
Using for Loops with Arrays
31.5
Solving Homework Problems with Arrays
31.6
Using the Enhanced for Loop
31.7
Using Arrays with Methods
31.8
Using Varargs
31.9
Using Two-Dimensional Arrays
31.10
Working with a Fun but Complicated Example: A Chessboard
31.11
Using the Arrays Class
Chapter 3: Using the ArrayList Class
8
32.1
Understanding the ArrayList Class
32.2
Creating an ArrayList Object
32.3
Adding Elements
32.4
Accessing Elements
32.5
Printing an ArrayList
32.6
Using an Iterator
32.7
Updating Elements
32.8
Deleting Elements
Chapter 4: Using the LinkedList Class
6
33.1
Understanding the LinkedList Class
33.2
Creating a LinkedList
33.3
Adding Items to a LinkedList
33.4
Retrieving Items from a LinkedList
33.5
Updating LinkedList Items
33.6
Removing LinkedList Items
Chapter 5: Creating Generic Collection Classes
5
34.1
Why Generics?
34.2
Creating a Generic Class
34.3
A Generic Stack Class
34.4
Using Wildcard-Type Parameters
34.5
A Generic Queue Class
Chapter 6: Using Maps and Trees
4
35.1
Mastering Maps
35.2
Using the HashMap Class
35.3
Removing Entries from a Hash Map
35.4
Using the TreeMap Class
Book 6: Algorithms
0
Chapter 1: Introducing Algorithms
3
37.1
What Is an Algorithm?
37.2
Classifying Algorithms
37.3
Some Fun Algorithm Challenges
Chapter 2: Using Recursion
3
38.1
Calculating the Classic Factorial Example
38.2
Displaying Directories
38.3
Playing the Towers of Hanoi
Chapter 3: Sorting
2
39.1
Looking at the Bubble Sort Algorithm
39.2
Introducing the Quicksort Algorithm
Chapter 4: Searching
3
40.1
Creating a Data Structure Worth Searching
40.2
Looking at Linear Searching
40.3
Using a Binary Search
Book 7: Programming Techniques
0
Chapter 1: Programming Threads
8
42.1
Understanding Threads
42.2
Creating a Thread
42.3
Implementing the Runnable Interface
42.4
Creating Threads That Work Together
42.5
Using an Executor
42.6
Synchronizing Methods
42.7
Creating a Lock
42.8
Coping with Threadus Interruptus
Chapter 2: Using Functional Programming and Lambda Expressions
6
43.1
Introducing Functional Programming
43.2
Introducing Functional Interfaces
43.3
Using Lambda Expressions
43.4
Passing Parameters via Lambda Expressions
43.5
Using Block Lambda Expressions
43.6
Using the java.util.function Package
Chapter 3: Consuming Web Services with HttpClient
5
44.1
Introducing Web Services
44.2
Understanding HTTP
44.3
Getting Started with Java’s HTTP Client Library
44.4
Putting It All Together
44.5
The HTTP Tester Program
Book 8: JavaFX
0
Chapter 1: Hello, JavaFX!
13
46.1
Perusing the Possibilities of JavaFX
46.2
Getting Ready to Run JavaFX
46.3
Looking at a Simple JavaFX Program
46.4
Importing JavaFX Packages
46.5
Extending the Application Class
46.6
Launching the Application
46.7
Overriding the start Method
46.8
Creating a Button
46.9
Handling an Action Event
46.10
Creating a Layout Pane
46.11
Making a Scene
46.12
Setting the Stage
46.13
Examining the Click Counter Program
Chapter 2: Handling Events
6
47.1
Examining Events
47.2
Handling Events
47.3
Implementing the EventHandler Interface
47.4
Handling Events with Inner Classes
47.5
Handling Events with Anonymous Inner Classes
47.6
Using Lambda Expressions to Handle Events
Chapter 3: Setting the Stage and Scene Layout
5
48.1
Examining the Stage Class
48.2
Examining the Scene Class
48.3
Switching Scenes
48.4
Creating an Alert Box
48.5
Exit, Stage Right
Chapter 4: Using Layout Panes to Arrange Your Scenes
10
49.1
Working with Layout Panes
49.2
Using the HBox Layout
49.3
Spacing Things Out
49.4
Adding Space with Margins
49.5
Adding Space by Growing Nodes
49.6
Using the VBox Layout
49.7
Aligning Nodes in a Layout Pane
49.8
Using the Flow Layout
49.9
Using the Border Layout
49.10
Using the GridPane Layout
Chapter 5: Getting Input from the User
4
50.1
Using Text Fields
50.2
Validating Numeric Data
50.3
Using Check Boxes
50.4
Using Radio Buttons
Chapter 6: Choosing from a List
6
51.1
Using Choice Boxes
51.2
Working with Observable Lists
51.3
Listening for Selection Changes
51.4
Using Combo Boxes
51.5
Using List Views
51.6
Using Tree Views
This content is protected, please
login
and
enroll
in the course to view this content!
Login
or
Sign Up
Home
Programs
Close Programs
Open Programs
Cybersecurity
Courses
Community
News
Knowledgebase
GIS
Courses
Community
News
Knowledgebase
Agile Methodologies
Courses
Community
News
Knowledgebase
Cybersecurity
Courses
Community
News
Knowledgebase
Catalog
About
Contact Us
Linkedin
Instagram
Modal title
Main Content