I\'m trying to understand the Observer and the Observable.
Here\'s an example that I\'m trying to figure out:
public class IntegerDataBag extends Obs
The update() method is called by the Observable. This method is called by calling notifyObservers(), which itterates trough all Observers and calls update on them. This informs the Observer that the object they are watching has been changed and a certain action can be performed. The args object is whatever you want it to be, it can be null aswell but it can be used to inform the observers what type of update just took place.