mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 19:58:23 +07:00
12 lines
281 B
Java
12 lines
281 B
Java
// "Replace with toArray" "true"
|
|
|
|
import java.util.Arrays;
|
|
import java.util.stream.IntStream;
|
|
|
|
public class Test {
|
|
public void test(int bound) {
|
|
Object[] arr = IntStream.range(0, bound).boxed().toArray(Integer[]::new);
|
|
System.out.println(Arrays.toString(arr));
|
|
}
|
|
}
|