public void Show() { if (!Empty) { SingleLinkedNode <T> p = head.Next; while (p.Next != head.Next) { p.Show(); Console.Write(" "); p = p.Next; } p.Show(); } }
public void Show() { SingleLinkedNode <T> p = first; while (p != null) { p.Show(); } }