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