MCPcopy Create free account
hub / github.com/ReadyTalk/avian / add

Method add

test/StackOverflow.java:2–8  ·  view source on GitHub ↗
(int[] numbers, int offset, int length)

Source from the content-addressed store, hash-verified

1public class StackOverflow {
2 private static int add(int[] numbers, int offset, int length) {
3 if (length == 0) {
4 return 0;
5 } else {
6 return numbers[offset] + add(numbers, offset + 1, length - 1);
7 }
8 }
9 private static int add(int ... numbers) {
10 return add(numbers, 0, numbers.length);
11 }

Callers 1

test1Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected