using java stream filter to find the sum of property

Solutions on MaxInterview for using java stream filter to find the sum of property by the best coders in the world

showing results for - "using java stream filter to find the sum of property"
Alexander
07 Nov 2017
1int sum = lst.stream().filter(o -> o.getField() > 10).mapToInt(o -> o.getField()).sum();
2
similar questions