mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 04:03:20 +07:00
GitOrigin-RevId: 9d8cf85eb1eee3ca8a38c2bcde119666afcc7934
13 lines
276 B
Java
13 lines
276 B
Java
// "Replace with 'Stream.mapToLong().sum()'" "true-preview"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
private String s;
|
|
|
|
public Main(List<List<String>> s) {
|
|
long count = s.stream().flatMap((strings) -> {
|
|
return (strings.stream());
|
|
}).cou<caret>nt();
|
|
}
|
|
} |