Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to compareTo in java

x.compareTo(y) <  0     // x <  y
x.compareTo(y) <= 0     // x <= y
x.compareTo(y) != 0     // x != y
x.compareTo(y) == 0     // x == y
x.compareTo(y) >  0     // x >  y
x.compareTo(y) >= 0     // x >= y
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #compareTo #java
ADD COMMENT
Topic
Name
4+9 =