mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-25 18:25:37 +07:00
GitOrigin-RevId: 1e79021fc4860398bc7bab047a5ec692e137d9dc
13 lines
311 B
Java
13 lines
311 B
Java
// "Replace the loop with 'List.replaceAll'" "true"
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
class Main extends ArrayList<String> {
|
|
void modifyStrings(List<String> strings) {
|
|
super.replaceAll(Main::modifyString);
|
|
}
|
|
|
|
static String modifyString(String str) {
|
|
return str.repeat(2);
|
|
}
|
|
} |