예제 #1
0
 public void beginStudy(double level) {
   System.out.println("Get ready to study...");
   lightStand.on();
   lightStand.setHeight(level);
   amp.on();
   amp.setLight(4);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }