mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 20:20:56 +07:00
20 lines
516 B
Java
20 lines
516 B
Java
// "Convert variable 'res' from String to StringBuilder" "true"
|
|
|
|
public class Main {
|
|
String test(String[] strings) {
|
|
String res = "";
|
|
for (String s : strings) {
|
|
if (/*before*/!res/*within*/.isEmpty()) {
|
|
res += ", ";
|
|
}
|
|
if (s.contains("'")) {
|
|
res = (res <caret>+ '[' // bracket
|
|
+ s + ']');
|
|
} else {
|
|
res = (res + s);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
}
|