blob: 67c35631b1a5040a83b177de9601c199567a0ac7 [file]
// "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();
}
}