Пример #1
0
        //insert data into the linked list
        public static void Main(string[] args)
        {
            LinkedList mylist = new LinkedList();

            mylist.head = new Node("my");
            Node second = new Node("is");
            Node third  = new Node("panda");

            //linking the nodes

            mylist.head.next = second;
            second.next      = third;

            mylist.printList();


            Console.ReadLine();
        }