mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
11 lines
296 B
Java
11 lines
296 B
Java
// "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));
|
|
}
|
|
} |