class Test{ public static void main(String[] args){ float f1=3.2f; float f2=6.5f; if(f1==3.2){ System.out.println(\"
In general is not a good practice to use the == operator with floating points number, due to approximation issues.