Example #1
0
 public void printNode()
 {
     Console.Write("|" + data + "|->");
     if (next != null)
     {
         next.printNode();
     }
 }
Example #2
0
        static void Main(String[] args)
        {
            Node n = new Node(10);

            n.addElementToLast(56);
            n.addElementToLast(34);


            n.printNode();
        }