So, I have created 2 interfaces One is called Observer and the other one Subject Observer contains update() method and Subject contains Boolean registerObserver(Observer o), Boolean removeObserver(Observer o) and void notifyObservers().
When I need to define the methods of Subject in a class I do not understand how should I use the ArrayList observers.
Thanks in advance for your help