System.out.println("Starting CompareObjects...");
Room r1 = new Room();
Room r2 = new Room();
String s1;
String s2;
s1 = new String("Hello world");
s2 = s1;
System.out.println(s2);
if(s1 == s2) System.out.println("s1 and s2 refer to the same object");
// set up a room of 4 by 3 metres
r1.setSize(4.0, 3.0);
r2.setSize(2.0, 6.0);
if(r1.compareSize(r2)) {
System.out.println("Rooms r1 and r2 the same size");
} else {
System.out.println("Rooms r1 and r2 not the same size");
}