Here you can find the source of mergeInts(int[] values, String delimiter)
static public String mergeInts(int[] values, String delimiter)
//package com.java2s; /*/*from w w w. ja v a 2 s . co m*/ * Copyright 2000-2013 Enonic AS * http://www.enonic.com/license */ public class Main { static public String mergeInts(int[] values, String delimiter) { if (values == null || values.length == 0) { return null; } StringBuffer merged = new StringBuffer(String.valueOf(values[0])); for (int i = 1; i < values.length; i++) { merged.append(delimiter); merged.append(values[i]); } return merged.toString(); } }