Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public int add(int[] arr) {
sum = 0;
for (int i=0; i<arr.length; i++) {
sum+=arr[i]
}
return sum;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment