mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
12 lines
322 B
Java
12 lines
322 B
Java
// "Introduce new StringBuilder to update variable 's'" "true-preview"
|
|
|
|
public class Main {
|
|
void test(String s) {
|
|
StringBuilder sBuilder = new StringBuilder(s);
|
|
for(int i = 0; i<10; i++) {
|
|
sBuilder.append(i);
|
|
}
|
|
s = sBuilder.toString();
|
|
System.out.println(s);
|
|
}
|
|
} |