mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-19 01:09:52 +07:00
11 lines
280 B
Java
11 lines
280 B
Java
// "Replace loop with Arrays.setAll" "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));
|
|
}
|
|
} |