package linkedList1;
public class LinkListApp {
/**
* @param args
*/
public static void main(String[] args) {
LinkList theList = new LinkList();
theList.insertFirst(22, 2.99);
theList.insertFirst(44, 4.99);
theList.insertFirst(66, 6.99);
theList.insertFirst(88, 8.99);
theList.displayList();
theList.reserve();
System.out.println("List after reserve:");
theList.displayList();
/* while(!theList.isEmpty()){
Link aLink = theList.deleteFirst();
System.out.print("Deleted");
aLink.displayLink();
System.out.println("");
}*/
theList.deleteFirst();
theList.deleteLast();
theList.displayList();
}
}