mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 15:20:54 +07:00
8 lines
222 B
Java
8 lines
222 B
Java
import java.util.stream.Stream;
|
|
|
|
// "Fold expression into Stream chain" "true-preview"
|
|
class Test {
|
|
int foo(String a, String b, String c, String d) {
|
|
return Stream.of(a, b, c, d).mapToInt(String::length).sum();
|
|
}
|
|
} |