mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
16 lines
434 B
Java
16 lines
434 B
Java
// "Convert variable 'res' from String to StringBuilder" "true-preview"
|
|
|
|
public class Main {
|
|
void test(String[] strings) {
|
|
StringBuilder res = new StringBuilder();
|
|
for (String s : strings) {
|
|
if(res.length()+s.length() > 80) {
|
|
System.out.println(res);
|
|
res = new StringBuilder();
|
|
}
|
|
res.append(s);
|
|
}
|
|
System.out.println(res);
|
|
}
|
|
}
|