public class TestList { public static void main(String[] args) { List L = new List(); ListElem e; e = new ListElem(1, "H"); L.insert(e); e = new ListElem(2, "e"); L.insert(e); e = new ListElem(3, "l"); L.insert(e); e = new ListElem(4, "l"); L.insert(e); e = new ListElem(5, "o"); L.insert(e); System.out.print("List after 5 insertions >> "); L.printList(); System.out.println(); L.delete(); System.out.print("After delete >> "); L.printList(); System.out.println(); } }