mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
9 lines
287 B
Java
9 lines
287 B
Java
// "Extract variable 's' to 'mapToObj' operation" "true"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
void testFlatMap() {
|
|
IntStream.of(1, 2, 3).mapToObj(String::valueOf).flatMapToInt(s -> IntStream.range(0, s.length())).forEach(System.out::println);
|
|
}
|
|
} |