public void SetNext(LLNode n) //set address of next node in current node { this.next = n; }
//constructors public LLNode(int data, LLNode next) { this.next = next; this.data = data; }
public void Enqueue(LLNode back) //put node in the last position of linked list { this.list.SetBack(back); }
public void SetBack(LLNode back) //set back node { this.back.SetNext(back); this.back = back; }
public void SetFront(LLNode newFront) //set front node { this.front = newFront; }
public LinkedList(int f, int b) { this.back = new LLNode(b); this.front = new LLNode(f, this.back); }