예제 #1
0
        static void Main(string[] args)
        {
            SingleLinkedList<string> test = new SingleLinkedList<string>();
            for (int i = 0; i < 10; i++)
            {
                test.Push("test" + i);
            }
            test = test.RevertList();

            foreach (var n in test )
            {
                Console.WriteLine(n);
            }
            Console.ReadKey();
        }