Java · Variables and primitive types

Casting and order of operations

An average of whole-number scores needs its fraction, and a cast tells Java which value to treat as a double.