Series of design patterns examples in Java, taken from the book "Head First Design Patters" by Eric Freeman & Elisabeth Robson (highly recommended).
This is a series of super simple examples to examplify each one of them.
To run the exercises, go to each directory independently and compile with:
javac -d classes *.javaThis will generat a class/ subdirectory in the pattern directory.
To run the execute:
java -classpath ":classes/" DriverThis executes the Driver clas which normally contains the main() method.