mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
15 lines
357 B
Java
15 lines
357 B
Java
// "Replace iteration with bulk 'List.replaceAll' call" "true"
|
|
import java.util.*;
|
|
|
|
class Main {
|
|
void modifyStrings(List<String> strings) {
|
|
for (int i = 0; i < strings.size(); i++) {
|
|
String str = strings.get(i);
|
|
strings.set<caret>(i, modifyString(str));
|
|
}
|
|
}
|
|
|
|
static String modifyString(String str) {
|
|
return str.repeat(2);
|
|
}
|
|
} |