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"); }
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"); }
}//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"); }