01: /**
02:    This program tests the invoice classes by printing
03:    a sample invoice.
04: */
05: public class InvoiceTester
06: {  
07:    public static void main(String[] args)
08:    {  
09:       Address samsAddress 
10:             = new Address("Sam's Small Appliances",
11:                "100 Main Street", "Anytown", "CA", "98765");
12: 
13:       Invoice samsInvoice = new Invoice(samsAddress);
14:       samsInvoice.add(new Product("Toaster", 29.95), 3);
15:       samsInvoice.add(new Product("Hair dryer", 24.95), 1);
16:       samsInvoice.add(new Product("Car vacuum", 19.99), 2);
17: 
18:       System.out.println(samsInvoice.format());           
19:    }
20: }
21: 
22: 
23: