Here you can find the source of arrayToString(String[] array)
public static String arrayToString(String[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static String arrayToString(String[] array) { String toReturn = null;/*from www .j av a 2 s . c om*/ if (null != array) { toReturn = ""; for (int i = 0; i < array.length; i++) { toReturn += array[i] + ",\n"; } } else { System.out.println("arrayToString(null)!"); } return toReturn; } }