mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
14 lines
325 B
Java
14 lines
325 B
Java
// "Replace the loop with 'List.replaceAll'" "true"
|
|
import java.util.List;
|
|
|
|
class Main {
|
|
void modifyStrings(List<String> strings) {
|
|
for<caret> (int i = 0; i < strings.size(); i++) {
|
|
strings.set(i, modifyString(strings.get(i)));
|
|
}
|
|
}
|
|
|
|
static String modifyString(String str) {
|
|
return str.repeat(2);
|
|
}
|
|
} |