public static final String repeatString(String sStr,int iTimes){
  StringBuffer sb=new StringBuffer();
  for (int iCnt=0; iCnt < iTimes; iCnt++)   sb.append(sStr);
  return sb.toString();
}

public static final String repeatString ( String sStr , int iTimes ) { StringBuffer sb = new StringBuffer ( ) ; for ( int iCnt = 0 ; iCnt < iTimes ; iCnt ++ ) sb . append ( sStr ) ; return sb . toString ( ) ; }
repeats a given string a specified number of times .
