1Z0-811

Study mode — explanations shown

1

Arrays and Methods

easy

A method that calculates the average of an array of doubles is defined as:

public static double average(double[] values) {

double sum = 0;

for (double v : values) sum += v;
    return sum / values.length;
}

Which call is valid?

0 of 117 answered