Java tutorial
//package com.java2s; public class Main { public static String arrayToString(Object[] objArr) { if (objArr == null || objArr.length == 0) { return null; } StringBuffer buf = new StringBuffer(); for (int i = 0; i < objArr.length; i++) { buf.append((i > 0 ? "," : "") + objArr[i]); } return buf.toString(); } }