Exemple #1
0
        // Main Method
        public static void Main()
        {
            /* Start with the empty list. */
            MyLinkedList list = new MyLinkedList();

            // Insert the values
            list.Insert(1);
            list.Insert(2);
            list.Insert(3);
            list.Insert(4);
            list.Insert(5);
            list.Insert(6);
            list.Insert(7);
            list.Insert(8);

            // Print the LinkedList
            list.PrintList();
        }