mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
15 lines
378 B
Java
15 lines
378 B
Java
// "Convert variable 'res' from String to StringBuilder" "true-preview"
|
|
|
|
public class Main {
|
|
String test(String[] strings) {
|
|
StringBuilder res = new StringBuilder();
|
|
for (String s : strings) {
|
|
if (res.length() > 0) {
|
|
res.insert(0, ".");
|
|
}
|
|
res.insert(0, s);
|
|
}
|
|
return res.toString();
|
|
}
|
|
}
|