/** * A class containing an operation on an array. * * @author Marcus */ public class Operation { /** * Computes the average of the values. * * @param values The values. * @return The average of the values. * @throws IllegalArgumentException Thrown if the values are null or * if there are no values in the array. */ public static double average(double[] values) { // TODO: implement return -1; } }