mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
10 lines
285 B
Java
10 lines
285 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
|
|
public class Main<T> {
|
|
void test() {
|
|
Integer totalLength = Stream.of("a", "bb", "ccc").co<caret>llect(Collectors.reducing(0, String::length, Integer::sum));
|
|
}
|
|
} |