How to sum the values in List 12:11 Posted by Unknown No Comments I want to find the sum of the List<int[]> using Java 8. Here is my attempt. int sum = counts.stream().flatMap(i -> Stream.of(i).mapToInt(m)).sum(); However, I get the error cannot convert ... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Unknown
0 Comment to "How to sum the values in List"
Post a Comment