mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 09:39:37 +07:00
10 lines
270 B
Java
10 lines
270 B
Java
// "Replace with 'String.repeat()'" "true"
|
|
class Test {
|
|
String testRepeat(String s, StringBuilder sb, int digits) {
|
|
if ((s.length() < digits) && (sb.length() > 0)) {
|
|
f<caret>or (int i=s.length(); i < digits; i++) {
|
|
sb.append('0');
|
|
}
|
|
}
|
|
}
|
|
} |