// CSE 143, Autumn 2013 // This client program makes use of several types of items. // It demonstrates the usefulness of the Item interface. import java.util.*; public class Library { public static void main(String[] args) { Book b = new Book("Lewis Carrol", "Alice in Wonderland", 452); CD c = new CD("Rebecca Black", "Friday", 3, 1); DVD d = new DVD ("Harry Potter", 230); List catalog = new ArrayList(); catalog.add(b); catalog.add(c); catalog.add(d); System.out.println(catalog.get(1).getTitle()); } }