Microsoft SDK for Java

compare

This method of the ArraySort Class compares two elements in the array using the Comparison object.

Syntax

protected int compare(int p, int q);

Return Value

Returns the result of the comparison.

Parameters

p The index of the first operand of the comparison.
q The index of the second operand of the comparison.

Overrides

compare(int,int) in.Sort

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