code: public static String dupString(char c, int nCopies) {
          char[] chars = new char[nCopies];
          Arrays.fill(chars, c);
          return new String(chars);
      }
docs: Create a new string thats a n duplicate copies of c
  @param c the char to duplicate
  @param nCopies how many copies?
  @return a string