mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
11 lines
331 B
Java
11 lines
331 B
Java
// "Replace the 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))++) {
|
|
String replacement = ((((((strings)).get(i))).toUpperCase()));
|
|
((strings)).set(((i)), ((replacement)));
|
|
}
|
|
}
|
|
} |