Answers for "compareto java\"

C
4

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
Posted by: Guest on November-30-2021

Code answers related to "C"

Browse Popular Code Answers by Language