Example

public class ClassA {
public int test () {
float a=0.0;
float b=0.0;

if (a == b) {
return;
}
}

}


Solution
Avoid using the comparison operator "==" or "!=" on float points. Two float points rarely contain the exact same value.