Hint: This code does not work as expected due to numerical inaccuracy. Rewrite the code using the approximation approach presented in this section to test if x is very close to 0.5. That is, |x - 0.5| < EPSILON, where EPSILON is a very small value. Declare a constant EPSILON with value 1E-14, and then rewrite the if statement to correct the potential error. Your code may look like this: final double EPSILON = 1E-14; if (Math.abs(value - 0.5) < EPSILON) message = "Comparison succesful!";