public static String padStart ( final String aString , final String aPadding , final int aRepeatCount ) { if ( aRepeatCount != 0 ) { final StringBuilder buffer = new StringBuilder ( ) ; for ( int index = 0 ; index < aRepeatCount ; index ++ ) { buffer . append ( aPadding ) ; } return buffer . append ( aString ) . toString ( ) ; } return aString ; }
Pads the beginning of a supplied string with the repetition of a supplied value .