code: public String generator(int repeat) {
      String repeater = "&nbsp;";
      StringBuilder returnval = new StringBuilder();
      for (int i = 0; i < repeat; i++) {
        returnval.append(repeater);
      }
      return returnval.toString();
    }
docs: <p>
  generator.
  </p>
  
  @param repeat a int.
  @return a {@link java.lang.String} object.