DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVA
using java stream filter to find the sum of property
int sum = lst.stream().filter(o -> o.getField() > 10).mapToInt(o -> o.getField()).sum();
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#java
#stream
#filter
#find
#sum
#property
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit