JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
public class Program
{
public static void main(String[] args) {
double a = 1.00;
//check if there is value after comma
if (a%1==0){
System.out.println((int)a+" is convert to int");
} else {
System.out.println(a+" is not convert to int");
}
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run