Various patterns for object-oriented programming.
This project aims to be compatible with the latest JDK versions.
To get the requirements, follow these steps:
- install a Java Development Kit (JDK): there are many, and the best one at the moment is Eclipse Temurin
- install Maven
To verify your JDK installation:
- check the compiler:
javac -version
- check the application launcher:
java -version
- check the archive tool:
jar --version
You can use either Eclipse or a compatible setup, for example:
To easily create a project for Eclipse or any other compatible IDE, copy the files from
tools/ide/eclipse
into the project root (next to this README
file). This will copy the
necessary configuration into the project directory. Once you have done that, you will be able
to import the project into your IDE. For example:
- for Eclipse:
Import > General > Import Existing Project into Workspace
- for VS Code:
File > Open Folder...
Each particular pattern (iterator, observer, etc.) is a self-contained project, with their own main
function.
To run the solutions, replace the contents of the src
folder with the contents of the src-solutions
folder.