This repository contains examples of various design patterns implemented in Java following the book "Head First Design Patterns" by Eric Freeman, Bert Bates, Kathy Sierra, and Elisabeth Robson. Each design pattern example includes code snippets and explanations of how the pattern works.
To get started with this repository, you will need to have Java and an integrated development environment (IDE) such as Eclipse or IntelliJ installed on your machine. Clone this repository to your local machine and open the project in your IDE.
The following design patterns are currently implemented in this repository:
- Strategy Pattern
- Observer Pattern
- Decorator Pattern
- Factory Pattern
- Singleton Pattern
- Command Pattern
- Adapter and Facade Patterns
- Template Method Pattern
- Iterator and Composite Patterns
- State Pattern
- Proxy Pattern
- Compound Patterns
Each design pattern example includes code snippets that demonstrate how the pattern can be implemented in Java.
This project is licensed under the MIT License - see the LICENSE file for details.
- Eric Freeman, Bert Bates, Kathy Sierra, and Elisabeth Robson for writing "Head First Design Patterns" and inspiring this repository.
- The Open Source community for providing tools and resources that make projects like this possible.