Here you can find the source of sum(final int[] terms, final int start, final int len)
static int sum(final int[] terms, final int start, final int len)
//package com.java2s; public class Main { static int sum(final int[] terms, final int start, final int len) { int s = 0; final int iSz = start + len; for (int i = start; i < iSz; i++) { s += terms[i];/*from w w w .ja v a2s . c o m*/ } return s; } static int sum(final int[] terms) { return sum(terms, 0, terms.length); } }