float.compare java

        if(Float.compare(1.4f, 1.4f) == 0) {
           System.out.println("The float values are the same");
        } else
           System.out.println("The float values are not the same");
        } 
CompSciGeek