code: public static String repeatString(String str, int count) {
  	if (count <= 0) return "";
  	char[] chars = str.toCharArray();
  	char[] rtn = new char[chars.length * count];
  	int pos = 0;
  	for (int i = 0; i < count; i++) {
  	    for (int y = 0; y < chars.length; y++)
  		rtn[pos++] = chars[y];
  	    // rtn.append(str);
  	}
  	return new String(rtn);
      }
docs: reapeats a string
  
  @param str string to repeat
  @param count how many time string will be repeated
  @return reapted string