static String repeat ( final String toBeRepeated , final int numTimes ) { final StringBuilder builder = new StringBuilder ( ) ; for ( int i = 0 ; i < numTimes ; i ++ ) { builder . append ( toBeRepeated ) ; } return builder . toString ( ) ; }
a str_repeat function .