/* This is the driver to test the linked list class. So far it just * hard codes the data input to see if new methods in List are working correctly * * You may also keep this class very simple to test your code. * Hard code if that is faster and easier for you to test. Your time * should be spend working with the linked lists. * Anne DeFrance * October 14, 2005 */ public class UseList { public static void main(String[] args) { List ourList = new List(); ourList.addToEnd(new String("zebra")); ourList.addToEnd(new String("fox")); ourList.addToEnd(new String("dog")); ourList.addToEnd(new String("cat")); ourList.addToEnd(new String("rat")); ourList.addToEnd(new String("bat")); System.out.println(ourList); } }