// 22.5HV2 Software Engineering II // Unit 4 Exercise 1 import java.io.*; public class Printer{ public Printer(String n) { name = name+n; } public void set_room(Room room) { this.location = room; } public void which_room() { System.out.println("Printer "+name+" is in room "+location.get_room_no()); } public String get_name() { return name; } private String name = ""; private Room location= null; };