how to turn double into int java code example
Example 1: java casting to int
//In java, you can cast to any primitive type by putting (primitiveType)
//before whatever you're casting to.
private static int myInt = (int)myDouble;
Example 2: java get int from double without rounding
int value = (int) 6.14; // 6
int score = (int) 6.99; // 6