mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 01:43:23 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
15 lines
368 B
Java
15 lines
368 B
Java
// "Replace loop with 'List.replaceAll()'" "true"
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
class Main extends ArrayList<String> {
|
|
void modifyStrings(List<String> strings) {
|
|
for<caret> (int i = 0; i < this.size(); i++) {
|
|
this.set(i, modifyString(this.get(i)));
|
|
}
|
|
}
|
|
|
|
static String modifyString(String str) {
|
|
return str.repeat(2);
|
|
}
|
|
} |