Beispiel #1
0
 public void Print()
 {
     if (headNode != null)
     {
         headNode.PrintList();
     }
 }
Beispiel #2
0
 public void PrintList()
 {
     Console.Write("|" + data + "|" + "->");
     if (next != null)
     {
         next.PrintList();
     }
     Console.WriteLine();
 }