// "Collapse loop with stream 'toArray()'" "true-preview"

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));
  }
}
