public void AddToEnd(int data) { if (headNode == null) { headNode = new nodeClass(data); } else { headNode.AddToEnd(data); } }
public void AddToEnd(int data) { if (Next == null) { Next = new nodeClass(data); } else { Next.AddToEnd(data); } }
public void AddToEnd(int data) { if (headNode == null) { headNode = new nodeClass(data); } else { headNode.AddToEnd(data); } }
public void AddToEnd(int data) { if (Next == null) { Next = new nodeClass(data); } else { Next.AddToEnd(data); } }