// 22.5HV2 Software Engineering II // Unit 4 Exercise 1 import java.io.*; public class Room { public Room(String name) { room = room + name; } public void install_printer(Printer print) { this.printer = print; this.printer.set_room(this); } public String which_printer() { if (printer != null) return printer.get_name(); else return "No Printer in This room"; } String get_room_no() { return room; } private String room = ""; private Printer printer = null; };