check if a number is an integer in java

https:/‮tual.www/‬turi.com
check if a number is an integer in java
if(num == (int)num){
 println("num is an integer");
}
Created Time:2017-09-10 09:56:43  Author:lautturi