mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-04 17:14:58 +07:00
13 lines
316 B
Java
13 lines
316 B
Java
// "Replace with toArray" "true"
|
|
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.stream.IntStream;
|
|
|
|
public class Test {
|
|
public void test(List<Integer> ints) {
|
|
long[] arr = IntStream.range(0, ints.size()).mapToLong(ints::get).toArray();
|
|
System.out.println(Arrays.toString(arr));
|
|
}
|
|
}
|