code: public static String repeat(char c, int count) {
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < count; i++) {
           builder.append(c);
        }
        return builder.toString();
     }
docs: Repeat string.
  
  @param c     the c
  @param count the count
  @return the string