How to convert a double value to int doing the following:
double
int
Double If x = 4.97542. Convert to int x = 4. Double If x = 4.23544. Conv
double myDouble = 420.5; //Type cast double to int int i = (int)myDouble; System.out.println(i);
The double value is 420.5 and the application prints out the integer value of 420