Exemplo n.º 1
0
        static void Main(string[] args)
        {
            DList <string> myDList = new DList <string>();
            DNode <string> noded   = new DNode <string>("Doubly List Imported");

            myDList.AddEnd(noded);
            myDList.AddFront("Front D");

            DoublyLinkedList.Program.PrintDList(myDList);


            List <string> myList = new List <string>();
            Node <string> node1  = new Node <string>("first");
            Node <string> node2  = new Node <string>("second");
            Node <string> node3  = new Node <string>("third");

            myList.AddFront(node1);
            myList.AddFront("insert");
            myList.AddFront(node2);
            myList.AddEnd("End");
            myList.AddFront(node3);
            myList.AddFront("fourth");
            myList.RemoveFront();
            myList.RemoveEnd();



            PrintList(myList);
        }