Question: Please Provide me all necssary Screenshort and Commentds:(I use eclipse) Implement the constructor, insertHead, insertTail, insertAfter, remove and search methods of a doubly linked list
Please Provide me all necssary Screenshort and Commentds:(I use eclipse)
Implement the constructor, insertHead, insertTail, insertAfter, remove and search methods of a doubly linked list defined as follows.
class DoubleLinkedListItem {
DoubleLinkedListItem next;
DoubleLinkedListItem prior;
String data;
}
class DoubleLinkedList {
DoubleLinkedListItem head;
DoubleLinkedListItem tail;
{
// TODO add your code here
}
void insertHead(DoubleLinkedListItem item)
{
// TODO add your code here
}
void insertTail(DoubleLinkedListItem item)
{
// TODO add your code here
}
void insertAfter(DoubleLinkedListItem insertAfter,
DoubleLinkedListItem itemToInsert)
{
// TODO add your code here
}
void remove(DoubleLinkedListItem item)
{
// TODO add your code here
}
DoubleLinkedListItem search(String data)
// TODO add your code here
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
