Return a string consisting of the specified number of spaces. @param length number of spaces @return space string @exception IllegalArgumentException if length is negative.
(final int length)
| 84 | * @exception IllegalArgumentException if <code>length</code> is negative. |
| 85 | */ |
| 86 | public static String spaces(final int length) { |
| 87 | return repeat(' ', length); |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * Return a string consisting of the specified character, repeated. |