Skip to content

Instantly share code, notes, and snippets.

@seyedsahil
Last active March 8, 2020 17:27
Embed
What would you like to do?
Creating an Observer instance
package org.sydlabz.mvc;
import java.util.Observer;
import java.util.Observable;
public class MessageListener implements Observer {
@Override
public void update(Observable messageQueue, Object prameters) {
// Handle the state change here.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment