(char ch, int n)
| 336 | } |
| 337 | |
| 338 | private static String repeat(char ch, int n) { |
| 339 | if (n <= 0) return ""; |
| 340 | StringBuilder sb = new StringBuilder(n); |
| 341 | for (int i = 0; i < n; i++) sb.append(ch); |
| 342 | return sb.toString(); |
| 343 | } |
| 344 | } |
no test coverage detected