public void AddEnd(int value) { if (next == null) { next = new Dataq(value); } else { next.AddEnd(value); } }
public void AddData(int value) { if (headNode == null) { headNode = new Dataq(value); } else { headNode.AddEnd(value); } Console.WriteLine("\n[" + value + "] has been added the the Queue"); }