mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
10 lines
245 B
Java
10 lines
245 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();
|
|
list.replaceAll(ignored -> random.nextInt());
|
|
}
|
|
} |