public static void newArray()
        {
            // This code with randomly assign numbers to the array:
            CArray nums = new CArray(5);
            Random rnd  = new Random(100);

            for (int i = 0; i < 5; i++)
            {
                nums.Insert((int)(rnd.NextDouble() * 100));
            }

            Console.WriteLine("New Array:");
            nums.DisplayElements();

            Console.WriteLine("Bubble Sorting:");
            nums.BubbleSort();

            Console.WriteLine("After Bubble Sorting:");
            nums.DisplayElements();

            CArray nums2 = new CArray(5);

            for (int i = 0; i < 5; i++)
            {
                nums2.Insert((int)(rnd.NextDouble() * 100));
            }


            Console.WriteLine("New array:");
            nums2.DisplayElements();

            Console.WriteLine("Selection Sort:");
            nums2.SelectionSort();
            nums2.DisplayElements();

            CArray nums3 = new CArray(5);

            for (int i = 0; i < 5; i++)
            {
                nums3.Insert((int)(rnd.NextDouble() * 100));
            }
            Console.WriteLine("New Array:");
            nums3.DisplayElements();

            Console.WriteLine("Insertion Sort:");
            nums3.InsertionSort();
            nums3.DisplayElements();
        }
        static void Main(string[] args)
        {
            // Please choose from the list of classes below, copy and paste them here.
            // Then debug as normal.

            //Question2 q2 = new Question2();
            //Question2.usingCollection();

            //Question3 q3 = new Question3();
            //q3.customcollectTime();
            //q3.ArrayListTime();

            //ArrayBasics arr = new ArrayBasics();
            //arr.firstExample();

            CArray.newArray();
        }