SyntaxFix
Write A Post
Hire A Developer
Questions
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