Given MyLinkedList
class implementing MyLinkedListInterface
, implement all the required methods.
Make your LinkedList to work as java.util.LinkedList
(create Node
objects to store data that have links to the left and to the right neighbour Node
).
Your implementation should have two pointers to the first and the last Node
.