/* Driver.java for the house program. * Let's create a house or two, compute costs and compare. */ public class Driver { public static void main(String [] args) { House h1 = new House(225, 60, 2115); System.out.printf("House #1 is %s\n\n", h1.toString()); System.out.printf("Let's create house #2...\n"); House h2 = new House(); // Output the costs. System.out.printf("Cost of house #1 is $ %.2f\n", h1.findCost()); System.out.printf("Cost of house #2 is $ %.2f\n", h2.findCost()); // Now, let's compare the sizes of the lots. if (h2.greaterLotThan(h1)) System.out.printf("House #2 is on a bigger lot.\n"); else System.out.printf("House #2 lot is no bigger than house #1's lot.\n"); } }