This is a solution for PART 2: Programming
2.Write the implementation for a linked list of integers (modify/adapt for int the generic implementation discussed in class). Have the following: //Interface: LinkedListIntADT public interface LinkedListIntADT { public boolean isEmptyList(); public void initializeList(); public void print(); public int length(); public int front(); public int back(); public boolean search(int searchItem); public void insertFirst(int newItem); public void insertLast(int newItem); public void deleteNode(int deleteItem); }
//Class: LinkedListIntClass implements //Interface: LinkedListIntADT import java.util.*; public abstract class LinkedListIntClass implements LinkedListIntADT { ... }
Feel free to leave you scribbles