Skip to content

Programming by Design

If you're not prepared to be wrong, you'll never come up with anything original. – Sir Ken Robinson

  • About
  • Java-PbD
  • C-PbD
  • ASM-PbD
  • Algorithms
  • Other

Author: William Jojo

Chapter 14 – Linked Lists, Iterators

Posted on June 2, 2019March 27, 2025 By William Jojo
Java Book

(Updated March 27, 2025) Table of contents Overview The Linked List Building the LinkedList Class Iterators An IterableList Implementing remove() An Alternative Node Approach Exercises Overview We discovered the usefulness of collecting data together under a single identifier name when using arrays. Further, we enjoyed the simplicity of accessing the elements of the array with … Read More “Chapter 14 – Linked Lists, Iterators” »

Chapter 13 – Recursion

Posted on June 2, 2019January 13, 2025 By William Jojo
Java Book

(Updated January 13, 2025) Table of contents Overview The Basics An Example Different Types of Recursion Another Example The Cost Memoization Exercises Overview We have previously determined that we often need to work while some condition exists or until some condition is met. This has always been handled using an iterative process, which we call … Read More “Chapter 13 – Recursion” »

Chapter 12 – Exceptions

Posted on June 2, 2019January 12, 2025 By William Jojo
Java Book

(Updated January 12, 2025) Table of contents Overview Handling Exceptions The try/catch/finally Block The Exception Hierarchy Checked and Unchecked Exceptions Creating an Exception Class Exercises Overview When we develop a Java program, there are many opportunities to fix syntax and logic problems. Some possibilities are available through error messages from the compiler, which refuses to … Read More “Chapter 12 – Exceptions” »

Chapter 11 – Inheritance and Polymorphism

Posted on June 2, 2019January 13, 2025 By William Jojo
Java Book

Updated January 13, 2025 Table of contents Inheritance The Object Class Abstract Methods and Classes Interfaces Inheritance vs. Composition Exercises Inheritance Recall from our discussion on creating a GUI that we chose to use the phrase extends Application (for JavaFX). This meant the class containing our program could obtain the ability to display a window … Read More “Chapter 11 – Inheritance and Polymorphism” »

Chapter 10 – Vector, ArrayList and Enumerations

Posted on June 2, 2019January 30, 2025 By William Jojo
Java Book

(Updated January 12, 2025) Table of contents Overview Autoboxing and Auto-Unboxing The Vector Class The ArrayList Class Enumerations Color Vector Part II The instanceof Operator Quiz Exercises Overview The use of arrays has opened up many possibilities for collecting related data together. This is just the beginning of collecting data of varying forms into containers … Read More “Chapter 10 – Vector, ArrayList and Enumerations” »

Chapter 9S – Sorting and Searching

Posted on June 2, 2019May 5, 2025 By William Jojo
Java Book

(Updated May 5, 2025) Table of contents Overview Mean, Median and Mode Sorting Bubble Sort Selection Sort Insertion Sort Shell Sort Quick Sort Sort Stress Test Searching Linear (Sequential) Search Binary Search Exercises Overview Once we have data in arrays, we quickly realize the value of having it in one place and easily addressable and … Read More “Chapter 9S – Sorting and Searching” »

Chapter 9 – Arrays

Posted on June 2, 2019January 20, 2025 By William Jojo
Java Book

(Updated January 20, 2025) Table of contents Overview Arrays Dynamic Arrays, Initialization and length Array Processing Copying Arrays Arrays of Objects Variable Length Parameter List Two-Dimensional Arrays Review Summing Arrays Managing Arrays Quiz Afterward Exercises Overview In the past, when calculating an average, we could sum up values entered by the user (or read from … Read More “Chapter 9 – Arrays” »

Chapter 8 – User Defined Classes and Abstract Data Types

Posted on June 2, 2019January 20, 2025 By William Jojo
Java Book

(Updated January 20, 2025) Table of contents Overview Classes Constructors Variables and Instantiation Constructors and Methods of the Person Class Copy Constructor The toString Method Static Members of a Class The this Reference Method Chaining Inner Classes and File Scope Records Exercises Overview Up to this point, we have been solving problems using objects. Recall … Read More “Chapter 8 – User Defined Classes and Abstract Data Types” »

Chapter 7 – Graphical User Interface – JavaFX

Posted on June 2, 2019January 10, 2025 By William Jojo
Java Book

(Updated January 10, 2025) Table of contents JavaFX Overview Dialogs JavaFX Application The Stage The Scene Common UI Controls Layouts Events Graphics Exercises JavaFX Overview The JavaFX runtime environment is built upon the idea of a JavaFX application. Unlike Swing, a series of components your application can extend, JavaFX uses the Application class to create … Read More “Chapter 7 – Graphical User Interface – JavaFX” »

Chapter 7a – Graphical User Interface – Swing (OLD)

Posted on June 2, 2019February 7, 2025 By William Jojo
Java Book

(Updated October 29, 2024) Table of contents Overview Windows and JFrame Adding Objects to JFrame Layouts (an introduction) Labels and Text Fields (JLabel, JTextField) Buttons (JButton) Event Handling Additional Layouts Graphics Exercises Overview The first time we used the GUI was back in the Objects, Input & Output section. Recall that the javax.swing package was … Read More “Chapter 7a – Graphical User Interface – Swing (OLD)” »

Posts pagination

Previous 1 … 11 12 13 … 18 Next

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Copyright © 2018 – 2025 Programming by Design.