blob: 30a02c6459b20b94ca9d85a7c28ade13a295e387 [file]
// "Replace loop with 'Arrays.setAll()' method call" "true"
import java.util.Arrays;
import java.util.List;
public class Test {
public void test(List<Integer> ints) {
int[] arr = new int[ints.size()];
Arrays.setAll(arr, ints::get);
System.out.println(Arrays.toString(arr));
}
}