Here you can find the source of arrayTransfer(int[] ids)
public static String arrayTransfer(int[] ids)
//package com.java2s; //License from project: Open Source License public class Main { public static String arrayTransfer(int[] ids) { System.out.println("DataUtils.arrayTransfer()"); if (ids != null && ids.length != 0) { StringBuffer str = new StringBuffer(""); for (int i = 0; i < ids.length; i++) { str.append(ids[i] + ","); }// w ww. j a va 2 s. c o m //System.out.println(str.toString().substring(0, str.toString().length()-1)); return str.toString().substring(0, str.toString().length() - 1); } return ""; } }