List of utility methods to do Array Sum
int sum = 0; for (int j = 0; j < i.length; j++) { sum += i[j]; return sum;