mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
06.44.2007 a52fe2b385c4d22833b34efbf29ae898933963b2
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -1544,4 +1544,22 @@
    return sb.toString();
  }
  /**
   * Creates a string consisting of the string representation of the
   * elements in the <code>list</code> separated by <code>separator</code>.
   * @param array the list to print
   * @param separator to use in separating elements
   * @return String representing the list
   */
  static public String stringArrayToString(String[] array, String separator) {
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < array.length; i++) {
      sb.append(array[i]);
      if (i < array.length - 1) {
        sb.append(separator);
      }
    }
    return sb.toString();
  }
}