Swap —
void Swap(index1, index2);int index1;int index2;
void Swap(
)
Swaps two objects in an array.
Parameters
The first element to be swapped
The second element to be swapped