This repository contains code examples for "Code with Java 21" by Aaron Ploetz (BPB Publishing). The specific chapters supported here are chapters 2 -> 7 and chapter 9.
- Java 21
- Maven
- Run from within an IDE.
All sample code works off of a single pom.xml, which is found at the root directory. Because of this, and the many main() methods within, running a single chapter's code from the command line can prove difficult to do. Therefore, the code in this repostory is meant to be run from within an IDE, such as Eclipse, IntelliJ, or VSCode.
- Chapter 1: Introduction (no runnable code in this chapter)
- Chapter 2: Fundamental Programming Structures (ch2 code)
- Chapter 3: Strings, Characters, and Regular Expressions (ch3 code)
- Chapter 4: Arrays, Collections, and Records (ch4 code)
- Chapter 5: Arithmetic Operations (ch5 code - unit tests)
- Chapter 6: Common Data Structures (ch6 code)
- Chapter 7: Working with Databases (ch7 code)
- Chapter 8: Web Applications (WeatherApp)
- Chapter 9: Graphics and Animation (ch9 code - JavaBreakout)
- Chapter 10: Final Project (MovieApp - MovieAppLoader)