mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 00:19:11 +07:00
GitOrigin-RevId: 68d047ac93ce4c2edbe200635505d661b7da25e9
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)));
|
|
}
|
|
}
|
|
} |