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