public void beginStudy(double level) { System.out.println("Get ready to study..."); lightStand.on(); lightStand.setHeight(level); amp.on(); amp.setLight(4); }
public void listenToRadio(double frequency) { System.out.println("Tuning in the airwaves..."); tuner.on(); tuner.setFrequency(frequency); amp.on(); amp.setVolume(5); amp.setTuner(tuner); }
public void watchMovie(String movie) { System.out.println("Get ready to watch a movie..."); projector.on(); projector.wideScreenMode(); amp.on(); amp.setDvd(dvd); amp.setVolume(5); dvd.on(); dvd.play(movie); }