public class ListTester { public static void main(String[] args) { System.out.println("List tester."); // Make some list items. ListItem item1 = new ListItem(); item1.setName("+2 ring"); item1.setDesc("precious"); item1.setCost(42.2112); item1.setNext(null); // Redundant, but safe. ListItem item2 = new ListItem(); item2.setName("Cloak of Doom"); item2.setDesc("Scary"); item2.setCost(666); item2.setNext(null); // Still redundant. Still safe. // Attach this new item2 to item1. // TODO Replace with ListMan.add functionality. item1.setNext(item2); // Make the list manager. ListMan lm1 = new ListMan(); lm1.setName("Magic Items"); lm1.setDesc("These are some of my favorite things."); // Put items in the list. // TODO Replace with ListMan.add functionality. lm1.setHead(item1); // Display the list. System.out.println(lm1.toString()); } }