示例#1
0
 public static void RevsSortedArray(ArrayList mainArray)
 {
     int[] secondaryArray = new int[ARRAY_SIZE];
     mainArray.Clear();
     WriteLine("Begin - Different Values Reverse Sorted");
     FillArray.FillArrayData(mainArray, 2);
     PrintArray(mainArray);
     CountArray(mainArray, secondaryArray);
     WriteLine("\n");
     PrintArray(secondaryArray);
     WriteLine("\n");
     SortArray(mainArray, secondaryArray);
     PrintArray(mainArray);
     WriteLine("End - Different Values Reverse Sorted");
 }
示例#2
0
 public static void RandomSortedArray(ArrayList mainArray)
 {
     int[] secondaryArray = new int[ARRAY_SIZE];
     mainArray.Clear();
     WriteLine("Begin - Random Data Randomly Ordered");
     FillArray.FillArrayData(mainArray, 3);
     PrintArray(mainArray);
     CountArray(mainArray, secondaryArray);
     WriteLine("\n");
     PrintArray(secondaryArray);
     WriteLine("\n");
     SortArray(mainArray, secondaryArray);
     PrintArray(mainArray);
     WriteLine("End - Random Data Randomly Ordered");
 }
示例#3
0
        }//End Main Method

        public static void SameDataArray(ArrayList mainArray)
        {
            int[] secondaryArray = new int[ARRAY_SIZE];

            WriteLine("Begin - Same Data Sort");
            FillArray.FillArrayData(mainArray, 0);
            PrintArray(mainArray);
            CountArray(mainArray, secondaryArray);
            WriteLine("\n");
            PrintArray(secondaryArray);
            WriteLine("\n");
            SortArray(mainArray, secondaryArray);
            PrintArray(mainArray);
            WriteLine("End - Same Data Sort");
        }