Microsoft SDK for Java

swap

This method of the ArraySort Class swaps two elements in the array.

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.

Overrides

swap(int,int) in Sort

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