All pastes #763890 Raw Edit

Someone

public java v1 · immutable
·published 2007-11-06 20:34 UTC
rendered paste body
public long sum(int[] v, int first, int last) {    if (first == last) {        return v[first];    } else {   // first < last        return v[first] + sum(v, first + 1, last);    }}