mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
9 lines
303 B
Java
9 lines
303 B
Java
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
|
|
// "Fold expression into Stream chain" "true-preview"
|
|
class Test {
|
|
void test2(Integer a, Integer b, Integer c, Integer d) {
|
|
String result = Stream.of(a, b, c, d).map(String::valueOf).collect(Collectors.joining(",")) + ",";
|
|
}
|
|
} |