Skip to main content
Ctrl
+
K
Start
Preface
Dedication
Author Information
Edition Information
Chapters
0: Introduction, Welcome to Java!
Prior Knowledge Especially Algorithms
Learning To Code
Java Summary
Visualize Your Program
Comments in a Program
Solutions to the Practice Questions
1: Becoming a Java Programmer
Data Types
A Conditional: The “if” Statement
A Form of Repetition: The “for-each” Loop
A Form of Repetition: The “while” Loop
Packaging Your Code: Methods
Solutions to the Practice Questions
2: More Arrays, More Control Structures, More Files
Arrays Revisted
2D and Multi-Dimensional Arrays
Control Structures for Arrays
Multiple Files to Make One Project - Start OOP
Getting Input From the User
Solutions to the Practice Questions
3: Hierarchies and More Object-Oriented Programming
Hierarchies for Inheritance
Setters and Getters
Default Constructor
A Representation to Print - toString()
Every Class Extends Object
Abstract Methods
Solutions to the Practice Questions
4: Introduction to Code Complexity
A Simple Example of Run-time Complexity
Order Notation
An Example With Different Complexity Classes
The Seven Most Common Computing Efficiency Functions
Space Efficiency
Solutions to the Practice Questions
5: Linked Lists
But First, What is a Node?
The Linked List Data Type
Operations (Methods) for a Linked List
Complexity Comparison with Arrays
Java’s Linked List Library
Other Kinds of Linked Lists
Solutions to the Practice Problems
6: ADTs in the Java Libraries: Stacks, Queues, Deques
Stack Data Type
Programs Using Stacks
Applications of Stacks
Queue Data Type
Deque Data Type
Solutions to the Practice Problems
7: Recursion
Example - Printing Characters Using Both Loop and Recursion
Example - Sum an Array with Both Loop and Recursion
Example - Power Function With Recursion
Sequential Search Recursively
Binary Search Recursively
Quicksort
Solutions to the Practice Questions
8: Trees, Binary Trees, Binary Search Trees
What is a Tree?
Traversals
Binary Search Tree (BST)
Solutions to the Practice Questions
Appendices
A: Java At A Glance
B: Java Long Form - All Commands By Category
C: GNU Free Documentation License
Index
.md
.pdf
Deque Data Type
Deque Data Type
#