java observable to observer

Java
setChanged();
notifyObservers(object_to_send_to_observer);setChanged();
notifyObservers(object_that_u_want_to_send_to_Observer);
Source

Also in Java: