mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-27 23:52:23 +07:00
8 lines
235 B
Java
8 lines
235 B
Java
// "Replace with 'String.repeat()'" "true"
|
|
class Test {
|
|
String testRepeat(String s, StringBuilder sb, int digits) {
|
|
if ((s.length() < digits) && (sb.length() > 0)) {
|
|
sb.append("0".repeat(digits - s.length()));
|
|
}
|
|
}
|
|
} |