Here you can find the source of convertArray2String(String[] sources)
public static String convertArray2String(String[] sources)
//package com.java2s; public class Main { public static String convertArray2String(String[] sources) { String result = ""; if (sources == null || sources.length == 0) { return null; }/*from w w w.j av a 2 s. c o m*/ for (String id : sources) { result += "'" + id + "',"; } result = result.substring(0, result.length() - 1); return result; } }