FileDocCategorySizeDatePackage
MessageBoard.javaAPI DocExample824Mon May 01 14:41:42 BST 2000None

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!");