Question: you need to implement the following things: 1-A generic List interface, which encapsulates the ADT for a list data structure. And these are the functions

 you need to implement the following things: 1-A generic List interface,

you need to implement the following things: 1-A generic List interface, which encapsulates the ADT for a list data structure. And these are the functions in the interface -public T getFirst () -public ListNode getFirstNode () -public T getLast (); -public void insertFirst (I data ); -public void insertAfter ( ListNode currentNode ,T data ); -public void insertLast (T data); -public void deleteFirst (; -public void deleteLast(): -public void deleteNext ( ListNode currentNode ); -public int size(): -public boolean isEmpty(); 2-A generic LinkedList class, which implements List interface (Please explain little with comments)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!