I\'m confused a bit. I couldn\'t find the answer anywhere ;(
I\'ve got an String array:
String[] arr = [\"1\", \"2\", \"3\"];
then
I have just written the following:
public static String toDelimitedString(int[] ids, String delimiter) { StringBuffer strb = new StringBuffer(); for (int id : ids) { strb.append(String.valueOf(id) + delimiter); } return strb.substring(0, strb.length() - delimiter.length()); }