Update averageWithMethods.java