public static String repeatChars ( final char ch , final int count ) { return CharBuffer . allocate ( count ) . toString ( ) . replace ( ' ' , ch ) ; }
Creates a string which contains a sequence of repeated characters .