Microsoft SDK for Java

swap

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.

Syntax

protected void swap(int p, int q);

Parameters

p The index of the first operand of the swap operation.
q The index of the second operand of the swap operation.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.