// "Replace with 'Arrays.stream()'" "true-preview"

import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

class Test {
  public void test(double[] array) {
    Arrays.stream(array, 1, 5).collect(Collectors.toList());
  }
}