Here you can find the source of convertArrayToString(String[] array, char seperator)
public static String convertArrayToString(String[] array, char seperator)
//package com.java2s; public class Main { public static String convertArrayToString(String[] array, char seperator) { if (array == null) return null; StringBuilder sb = new StringBuilder(); for (int i = 0; i < array.length; i++) { sb.append(array[i]);//w ww . j a v a 2 s . c o m if (i != array.length - 1) { sb.append(seperator); } } return sb.toString(); } }