java observable

Java
setChanged();
notifyObservers(object_that_u_want_to_send_to_Observer);
Source

Also in Java: