[java] How to test if a double is zero?