mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 20:50:54 +07:00
9 lines
278 B
Java
9 lines
278 B
Java
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
|
|
// "Fold expression into Stream chain" "true-preview"
|
|
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());
|
|
}
|
|
} |