code: public static String times(String s, int num) {
          StringBuilder builder = new StringBuilder();
          for (int i = 0; i < num; ++i) {
              builder.append(s);
          }
          return builder.toString();
      }
docs: Multiply a string N times.
  
  @param s   The string to multiply.
  @param num N
  @return The result.