blob: f5f5c74065120de67281350778b0d65b234eaa45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import java.io.Serializable;
public class TextMessage extends Message implements Serializable {
private String msg;
public TextMessage(String from, String to, String msg) {
super(from, to);
this.msg = msg;
}
public void handle(Node node) throws Exception {
System.out.printf("%s >> %s%n", this.from, this.msg);
}
}
|