compareTo

compareTo(Object obj) method

Compares the current instance with another object of the same type.

Parameters

NameTypeDescription
objObjectAn object to compare with this instance.

Returns

int