mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 04:50:58 +07:00
16 lines
379 B
Java
16 lines
379 B
Java
// "Convert variable 'res' from String to StringBuilder" "true"
|
|
|
|
public class Main {
|
|
String test(String[] strings) {
|
|
StringBuilder res = null;
|
|
for (String s : strings) {
|
|
if(res == null) {
|
|
res = new StringBuilder(s);
|
|
} else {
|
|
res.append(s);
|
|
}
|
|
}
|
|
return res.toString();
|
|
}
|
|
}
|