mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
12 lines
308 B
Java
12 lines
308 B
Java
// "Replace with collect" "true"
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.IntStream;
|
|
|
|
public class Main {
|
|
public void testForLoop() {
|
|
List<Integer> result = IntStream.rangeClosed(0, 10).boxed().collect(Collectors.toList());
|
|
}
|
|
} |