Here you can find the source of arrayToString(String[] array)
public static String arrayToString(String[] array)
//package com.java2s; //License from project: LGPL public class Main { public static String arrayToString(String[] array) { if ((array == null) || (array.length == 0)) { return ""; }//from w w w .j a v a 2s . co m StringBuilder sb = new StringBuilder(); for (String s : array) { sb.append(';'); sb.append(s); } return sb.substring(1); } }