You can still have all the values as ints. When it comes to calculating the average you need at least one floating point value.

9 / 2 = int
9.0 / 2 = double
9 / 2.0 = double
9.0 / 2.0 = double...