mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
18 lines
369 B
Java
18 lines
369 B
Java
// "Introduce new StringBuilder to update variable 'res' (null-safe)" "true-preview"
|
|
public class SB {
|
|
public static void main(String[] args) {
|
|
String res = null;
|
|
for (String arg : args) {
|
|
if (res == null) {
|
|
res = "[";
|
|
} else {
|
|
res +<caret>= ",";
|
|
}
|
|
res += arg;
|
|
}
|
|
res += "]";
|
|
System.out.println(res);
|
|
}
|
|
}
|
|
|