mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 22:43:40 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
14 lines
323 B
Java
14 lines
323 B
Java
// "Replace 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);
|
|
}
|
|
} |