mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
8 lines
217 B
Java
8 lines
217 B
Java
// "Replace with 'String.repeat()'" "true"
|
|
class Test {
|
|
String spaces(int c, int d) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("123456".repeat(Math.max(0, c - d)));
|
|
return sb.toString();
|
|
}
|
|
} |