java interface Observer code example Example: java observable to observer setChanged(); notifyObservers(object_to_send_to_observer);