// // defining the doubly-linked list node // public class DListNode { private String data; private DListNode next; private DListNode back; public DListNode() { data= null; next = null; back = null; } public DListNode(String d, DListNode n, DListNode b) { data = d; next = n; back = b; } public void setData(String d) { data = d; } public void setNext(DListNode n) { next = n; } public void setBack(DListNode b) { back = b; } public String getData() { return data; } public DListNode getNext() { return next; } public DListNode getBack() { return back; } }