Here you can find the source of copyArrayToStr(String[] src, String del)
public static String copyArrayToStr(String[] src, String del)
//package com.java2s; //License from project: Open Source License public class Main { public static String copyArrayToStr(String[] src, String del) { StringBuilder sb = new StringBuilder(); for (String s : src) sb.append(s + del);/*from www . ja va 2s . c o m*/ String toret = sb.toString(); toret = toret.substring(0, toret.length() - del.length()) + "\n"; src = null; return toret; } }