According to this java.sun page == is the equality comparison operator for floating point numbers in Java.
==
However, when I type this code:
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.