Java tutorial
//package com.java2s; public class Main { public static String implodeInt(int[] list) { String sep = ","; StringBuilder sb = new StringBuilder(); for (int i = 0; i < list.length; i++) { sb.append(Integer.toString(list[i])); if (i != list.length - 1) { sb.append(sep); } } return sb.toString(); } }