create a observable n java code example
Example 1: java observable to observer
setChanged();
notifyObservers(object_to_send_to_observer);
Example 2: java observable
setChanged();
notifyObservers(object_that_u_want_to_send_to_Observer);
setChanged();
notifyObservers(object_to_send_to_observer);
setChanged();
notifyObservers(object_that_u_want_to_send_to_Observer);