According to this java.sun page == is the equality comparison operator for floating point numbers in Java.
==
However, when I type this code:
The correct way would be
java.lang.Float.compare(float1, float2)