Ejemplo n.º 1
0
 public void Print()
 {
     if (headNode != null)
     {
         headNode.Print();
     }
 }
Ejemplo n.º 2
0
 public void Print()
 {
     Console.Write("|" + data);
     if (Next != null)
     {
         Console.Write("|-->");
         Next.Print();
     }
     else
     {
         Console.WriteLine("|");
     }
 }