Question: Implement a linked list class that implements MyLinkedList implement the insert() method. A linked list class will typically contain a MyNode reference for the start


Implement a linked list class that implements MyLinkedList implement the insert() method. A linked list class will typically contain a MyNode reference for the start of the list that is set to null at construction time to indicate an empty list.

Java HW:

I currently has two java files:

1.

public class MyNode {

public Object data ;

public MyNode next;

}

2.

public interface MyLinkedList {

public void insert(Object x);

public void insertFirst(Object x);

public void insertLast(Object x);

public void delete(Object x);

public boolean lookup(Object x);

public void printList();

}



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 Programming Questions!