SyntaxFix
Write A Post
Hire A Developer
Questions
First of all, are they float or Float? If one of them is a Float, you should use the equals() method. Also, probably best to use the static Float.compare method.