public LinkedListNode(T element, LinkedListNode <T> prevLinkedListNode) { this.element = element; this.next = prevLinkedListNode.next; prevLinkedListNode.next = this; }
public LinkedList() { head = null; tail = null; count = 0; }
public LinkedListNode(T element) { this.element = element; next = null; }