This method of the Sort Class is called when the sorting engine must swap two elements. Subclasses override this method in a container-specific manner.
protected void swap(int p, int q);
p | The index of the first operand of the swap operation. |
q | The index of the second operand of the swap operation. |