Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

sum of arraylist java 8

int total = numbers.stream().mapToInt(i -> i.intValue()).sum();
		System.out.print(total);
 
PREVIOUS NEXT
Tagged: #sum #arraylist #java
ADD COMMENT
Topic
Name
5+2 =