Observer.java

Observer pattern. Class observer that is accesed by a Subject to be informed of any
change that the observer may have registered before with the Subject class.
When the observer is warned by the subject the method update() is invoked.