Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions DoublyLinkedList.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
public Class DoublyLinkedList <E>{
private static Class Node<E>{
public class DoublyLinkedList <E>{
private static class Node<E>{
E e;
Node next;
Node prev;
Node<E> next;
Node<E> prev;
public Node(E e, Node<E> prev, Node<E> next){
this.e = e;
this.prev = prev;
this.next = next;
}
public E getElement() { return element; }

public Node<E> getPrev() { return prev; }

public Node<E> getNext() { return next; }

public void setPrev(Node<E> p) { prev = p; }

public void setNext(Node<E> n) { next = n; }
}
}