O'Reilly logo
  • Tansu Dasli thinks this is interesting:

double average = (double) total / gradeCounter;

From

Cover of Java® 9 for Programmers, Fourth Edition

Note

integer division with double casting