Here you can find the source of arrayToString(String[] array)
Parameter | Description |
---|---|
array | a parameter |
public static String arrayToString(String[] array)
//package com.java2s; //License from project: Apache License import java.util.Arrays; public class Main { /**/*from w ww . j a v a 2s .c om*/ * Convert array to string of comma separated values. * * @param array */ public static String arrayToString(String[] array) { if (array != null && array.length > 0) { return Arrays.deepToString(array).replace(" ", "").replace("[", "").replace("]", ""); } return ""; } }