SyntaxFix
Write A Post
Hire A Developer
Questions
int x = thisObject.compareTo(anotherObject);
The compareTo() method returns an int with the following characteristics:
compareTo()
If thisObject < anotherObject
If thisObject == anotherObject
If thisObject > anotherObject