java cast from int to integer 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: how do you set an integer to a number in java
int num = 9;