@param array values to sum @return sum of values in array
static int sum(List<int> array) { int count = 0; for (int a in array) { count += a; } return count; }