mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-19 13:18:46 +07:00
dd689d3a39
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
12 lines
327 B
Java
12 lines
327 B
Java
// "Extract variable 's' to 'mapToObj' operation" "true-preview"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
void testFlatMap() {
|
|
IntStream.of(1, 2, 3).flatMap(x -> {
|
|
String <caret>s = String.valueOf(x);
|
|
return IntStream.range(0, s.length());
|
|
}).forEach(System.out::println);
|
|
}
|
|
} |