[java] How to test if a double is an integer