/Users/lyon/j4p/src/net/rmi/armi/ArmiHelloWorldTest.java
|
1 package net.rmi.armi;
2
3 import java.util.*;
4
5 public class ArmiHelloWorldTest
6 implements Observer {
7
8 public ArmiHelloWorldTest() {
9 }
10 public void update(Observable obs,
11 Object arg){
12 System.out.println(arg);
13 }
14 public static void main(String args[]){
15 ArmiHelloWorld ashw
16 = new ArmiHelloWorld();
17 ArmiHelloWorldTest ashwt
18 = new ArmiHelloWorldTest();
19 ashw.addObserver(ashwt);
20 ashw.getMsg();
21 ashw.testGetMsg();
22 }
23 }
24