public static int mean(int... values) {
        int sum = 0;
        for (int v : values) {
            sum += v;
        }
        return sum / values.length;
    }
public static int mean(int... values) {
        int sum = 0;
        for (int v : values) {
            sum += v;
        }
        return sum / values.length;
    }
public static int mean ( int ... values ) { int sum = 0 ; for ( int v : values ) { sum += v ; } return sum / values . length ; }
Calculates the mean of a set of values

@param values to calculate the mean of
@return the mean of the values
Calculates the mean of a set of values