stringOfChar static method
Returns a String
of repeated characters.
@param ch the character to repeat
@param count the number of times to repeat the character
@return a String
of characters
Implementation
static String stringOfChar(String ch, int count) {
StringBuffer buf = StringBuffer();
for (int i = 0; i < count; i++) {
buf.write(ch);
}
return buf.toString();
}