Here you can find the source of convertToString(long[] ids)
public static String convertToString(long[] ids)
//package com.java2s; public class Main { public static String convertToString(long[] ids) { StringBuilder str = new StringBuilder(""); if (ids != null && ids.length > 0) { for (long id : ids) { str.append(id).append(","); }/*from w w w . j av a 2 s. co m*/ str.setCharAt(str.length() - 1, ' '); } return str.toString(); } }