please this code about doubly linked lis is important can any one help me?
I want to create method two add between to element or two node any here know it
?
public class DoublyLinkedListImpl<E> {
private Node head;
private Node tail;
private int size;
public DoublyLinkedListImpl() {
size = 0;
}
/**
* this class keeps track of each element information
* @author java2novice
*
*/
private class Node {
E element;
Node next;
Node prev;
public Node(E element, Node next, Node prev) {
this.element = element;
this.next = next;
this.prev = prev;
public void addBetween(Node e1, E first element, Node second element) {
I mean public void addbetween(E, Node1 ,Node 2)