convert java.lang.number to int code example Example: how do you set an integer to a number in java int num = 9;