FileDocCategorySizeDatePackage
MessageBoard.javaAPI DocExample667Tue Jul 08 21:21:02 BST 1997None

MessageBoard

public class MessageBoard extends Observable

Fields Summary
private String
message
Constructors Summary
Methods Summary
public voidchangeMessage(java.lang.String message)

		this.message = message;
		setChanged();
		notifyObservers( message );
	
public java.lang.StringgetMessage()

		return message;
	
public static voidmain(java.lang.String[] args)

		MessageBoard board = new MessageBoard();
		Student bob = new Student();
		Student joe = new Student();
		board.addObserver( bob );
		board.addObserver( joe );
		board.changeMessage("More Homework!");