public static int compare (int x, int y)

Compares two int values numerically. The value returned is identical to what would be returned by:

    Integer.valueOf(x).compareTo(Integer.valueOf(y))
 

Parameters:
x    the first int to compare
y    the second int to compare

Returns:  the value 0 if x == y; a value less than 0 if x < y; and a value greater than 0 if x > y

Since:  1.7