Singleton & Observer Pattern (Java)

This blog post will demonstrate a simple use case where the singleton and observable design pattern becomes important. Let’s imagine if you are in the arcade and there is a Lucky Dip Machine. The reason I like call it the LuckyDipMachine is because it is one of the feature assignments in the Programming Foundation Units in Monash University and it is often times made fun at. However, the solution for assignment itself can be engineered to be better....

November 3, 2019 · Jian