Exemple #1
0
        static void Main(string[] args)
        {
            // int[] arr = new int[5]{1,2,3,4,5};
            // var x = Array.IndexOf(arr,3);
            // Console.WriteLine(x);
            // Node one = new Node(1);
            // Node two = new Node(2);
            // Node three = new Node(3);
            // one.Next = two;
            // two.Next = three;
            // Console.WriteLine(one.Next.Next.Data);

            List l = new List();

            l.AddInFirst(5);
            // l.AddInFirst(10);
            l.AddInEnd(15);
            l.Search(10);
            l.Remove(100);
            l.AddInEnd(30);
            l.Insert(40, 1);
            int x = l.Count();

            // System.Console.WriteLine($"coutn = {x}");
            l.Display();
        }