mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
9 lines
206 B
Java
9 lines
206 B
Java
// "Replace the loop with 'List.replaceAll'" "true"
|
|
import java.util.List;
|
|
|
|
class Main {
|
|
void modifyList(List<Integer> list) {
|
|
Random random = new Random();
|
|
list.replaceAll(ignored -> 42);
|
|
}
|
|
} |