Examples of Java design patterns based on Tutorialpoint