mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 15:20:54 +07:00
9 lines
299 B
Java
9 lines
299 B
Java
import java.util.stream.Collectors;
|
|
import java.util.stream.IntStream;
|
|
|
|
// "Fold expression into Stream chain" "true-preview"
|
|
class Test {
|
|
String foo(int a, int b, int c, int d) {
|
|
return IntStream.of(a, b, c, d).map(i -> i * 2).mapToObj(String::valueOf).collect(Collectors.joining("|"));
|
|
}
|
|
} |