mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
9 lines
270 B
Java
9 lines
270 B
Java
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
|
|
// "Fold expression into Stream chain" "true"
|
|
class Test {
|
|
String foo(String a, String b, String c, String d) {
|
|
return Stream.of(a, b, c, d).map(String::trim).collect(Collectors.joining());
|
|
}
|
|
} |