mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
11 lines
290 B
Java
11 lines
290 B
Java
// "Replace the loop with 'List.replaceAll'" "false"
|
|
import java.util.List;
|
|
|
|
class Main {
|
|
void modifyStrings(List<String> strings) {
|
|
for<caret> (int i = 0; i < strings.size(); i++) {
|
|
if (Math.random() > 0.5) break;
|
|
strings.set(i, strings.get(i).toLowerCase());
|
|
}
|
|
}
|
|
} |