mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
12 lines
287 B
Java
12 lines
287 B
Java
// "Replace the loop with 'List.replaceAll'" "true"
|
|
import java.util.List;
|
|
import java.util.Random;
|
|
|
|
class Main {
|
|
void modifyList(List<Integer> list) {
|
|
Random random = new Random();
|
|
for<caret> (int i = 0; i < list.size(); i++) {
|
|
list.set(i, random.nextInt());
|
|
}
|
|
}
|
|
} |