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

import java.util.Arrays;
import java.util.List;

public class Test {
  public void test(List<List<String>> list) {
    List<?>[] arr = list.stream().toArray(List[]::new);
      System.out.println(Arrays.toString(arr));
  }
}
