I need a method that will slow down a program i have that sorts an array of numbers in three different ways. I want it so that after a button is pushed the array is slowly sorted stepping through each swap of each number and then stopping when the array is sorted. Does anyone have any idea of a way i can do this sort of thing? would a Timer be a good way to do this?
Appreciate the help!