Implement a linked list class that implements MyLinkedList implement the insert() method. A linked list class will
Fantastic news! We've Found the answer you've been seeking!
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 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();
}
Related Book For
Introduction To Java Programming And Data Structures Comprehensive Version
ISBN: 9780136520238
12th Edition
Authors: Y. Daniel Liang
Posted Date: