Here you can find the source of ArraysToString(String[] arrays)
public static String ArraysToString(String[] arrays)
//package com.java2s; public class Main { public static String ArraysToString(String[] arrays) { String result = ""; if (arrays != null && arrays.length > 0) { for (String value : arrays) { result += value + ","; }// w ww . j a va2 s . c om result = result.substring(0, result.length() - 1); } return result; } }