Skip to content

Instantly share code, notes, and snippets.

@goyuninfo
Created November 26, 2013 04:58
Show Gist options
  • Save goyuninfo/7653686 to your computer and use it in GitHub Desktop.
Save goyuninfo/7653686 to your computer and use it in GitHub Desktop.
package it.i88.ca.example.se.observer;
public class ObserverTest {
public static void main(String[] args) {
Observered oed = new Observered();
MyObserver mo1 = new MyObserver();
MyObserver mo2 = new MyObserver();
oed.addObserver(mo1);
oed.addObserver(mo2);
oed.updateNoticeBoard("Event from i88.ca occurs");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment