mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
15 lines
418 B
Java
15 lines
418 B
Java
// "Replace the loop with 'List.replaceAll'" "false"
|
|
import java.io.IOException;
|
|
import java.util.List;
|
|
|
|
class Main extends ArrayList<String> {
|
|
void modifyStrings(List<String> strings) throws IOException {
|
|
for<caret> (int i = 0; i < strings.size(); i++) {
|
|
strings.set(i, modifyString(strings.get(i)));
|
|
}
|
|
}
|
|
|
|
static String modifyString(String str) throws IOException {
|
|
return str.repeat(2);
|
|
}
|
|
} |