Method compareTo(Integer anotherInteger)
Return type: int
Member of:
java.lang.Integer
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
int compare = newIndexState.compareTo(currentIndexState);
2
if (max != null && result.compareTo(max) > 0)
3
v = i.compareTo( (Integer)n.getData() );
4
if (val.compareTo(val2) >= 0) {
5
if (curr.compareTo(idx) <= 0) {
6
if (bestRank.compareTo(rank) < 0)
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.