mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
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);
|
|
}
|
|
} |