Created
November 26, 2013 05:05
-
-
Save goyuninfo/7653723 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package it.i88.ca.example.se.observer; | |
import java.util.Observable; | |
class Observered extends Observable { | |
private String event; | |
public String getEvent() { | |
return event; | |
} | |
public void updateNoticeBoard(String notice) { | |
this.event = notice; | |
setChanged(); | |
notifyObservers(notice); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment