Java Final Variable Example Statistics Problem