code: public static String fill (char c, int count)
      {
          char[] sameChars = new char[count];
          Arrays.fill(sameChars, c);
          return new String(sameChars);
      }
docs: Returns a string containing the specified character repeated the specified number of times.