Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Get the SUM of integers in List JAVA

int sum = list.stream().mapToInt(Integer::intValue).sum();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Get #SUM #integers #List #JAVA
ADD COMMENT
Topic
Name
4+7 =