1 import java.util.ArrayList; 2 3 4 public class EmailClient { 5 /** 6 * Example usage of Emailer functionality 7 * 8 * @param args Description 9 */ 10 public static void main(String[] args) throws Exception { 11 Emailer emailer = new Emailer(); 12 13 ArrayList lineItems = new ArrayList(); 14 lineItems.add(new Item("Thinking in Java", 24.05f)); 15 lineItems.add(new Item("Core Java Volume I", 34.30f)); 16 17 Customer customer = new Customer("John", "Brown", "jb@gmail.com"); 18 19 emailer.sendReceipt(new Order(customer, lineItems)); 20 } 21 } 22