code: public static String implode(int[] values, String separator) {
          StringBuffer result = new StringBuffer();
          for (int i = 0; i < values.length; i++) {
              if (i > 0)
                  result.append(separator);
              result.append(values[i]);
          }
          return result.toString();
      }
docs: TODO see if avail in commons