public static String repeat ( final String aValue , final int aRepeatCount ) { final StringBuilder buffer = new StringBuilder ( ) ; for ( int index = 0 ; index < aRepeatCount ; index ++ ) { buffer . append ( aValue ) ; } return buffer . toString ( ) ; }
Creates a new string from the repetition of a supplied value .