// 22.5HV2 Software Engineering II // Unit 4 Exercise 1 // Uninteresting driver program to test Person and Name classes import java.io.*; public class ex4 { public static void main(String args[]) { Printer printer1 = new Printer("Bubble Jet"); Printer printer2 = new Printer("Colour Laser"); Printer printer3 = new Printer("Laser"); Room room1 = new Room("1.38"); Room room2 = new Room("3.31"); Room room3 = new Room("1.27"); Room room4 = new Room("toilet"); room1.install_printer(printer1); room2.install_printer(printer2); room3.install_printer(printer3); printer1.which_room(); printer2.which_room(); printer3.which_room(); System.out.println(room1.which_printer()); System.out.println(room2.which_printer()); System.out.println(room3.which_printer()); System.out.println(room4.which_printer()); } }