Here you can find the source of convertArrayToString(String[] idArray)
public static String convertArrayToString(String[] idArray)
//package com.java2s; //License from project: Open Source License public class Main { public static String convertArrayToString(String[] idArray) { StringBuffer sb = new StringBuffer(); for (Object obj : idArray) { sb.append(obj);//from ww w. j a v a2 s . c o m sb.append(","); } sb.delete(sb.length() - 1, sb.length()); return sb.toString(); } }