Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Algorithms - sum

public int sum(List<Integer> numbers) {
    int sum = 0;
    for (Integer n: numbers) {
        sum += n;
    }
    return sum;
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Algorithms #sum
ADD COMMENT
Topic
Name
4+8 =