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

            while (p != null)
            {
                p.Show();
            }
        }