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