mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
17 lines
387 B
Java
17 lines
387 B
Java
// "Convert variable 'res' from String to StringBuilder" "true-preview"
|
|
|
|
public class Main {
|
|
String test(String[] strings) {
|
|
String res = null;
|
|
for (String s : strings) {
|
|
if (s == null) continue;
|
|
if(res == null) {
|
|
res = s;
|
|
} else {
|
|
res<caret>+=s;
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
}
|