// rpf, 011401 for JUG group cell phone project // done on hearthside // Base station class. // javadoc added 020201 package jug; import java.io.*; import java.lang.String; /** * A simple base station that "sends" and "receives" a string message. */ public class Base1 { public static void main (String[] args) { System.out.println("Base1"); } Space1 space; Base1(Space1 spaceArg) { space = spaceArg; } /** * The step method - at each step the base deposits a message in "space". * The message goes to the phone * The base prints what it receives "from space", from the phone. */ public void step() { space.fromBase = "Hi from your base."; System.out.println("Base hears: " + space.toBase); } }