public data getElement() { data element = first.key; ConcatenateListNode temp = first; first = first.next; temp.next = null; return(element); }
public void printList() { ConcatenateListNode L = first; while (L != null) { Console.Write("\n" + L.key.pKey); L = L.next; } }
public void Insert(data key) { ConcatenateListNode node = new ConcatenateListNode(key, null); if (first == null) { first = node; last = node; } else { last.next = node; last = node; } }
public ConcatenateListNode(data key, ConcatenateListNode next) { this.key = key; this.next = next; }
public ConcatenateList(ConcatenateListNode first, ConcatenateListNode last) { this.first = first; this.last = last; }