Here you can find the source of makeDivideString(String[] arr_str, String divide_str)
public static String makeDivideString(String[] arr_str, String divide_str)
//package com.java2s; //License from project: Apache License public class Main { public static String makeDivideString(String[] arr_str, String divide_str) {/*from w w w . j av a 2s. c o m*/ if (arr_str == null) return null; if (arr_str.length == 0) return ""; StringBuilder sb = new StringBuilder(); for (String e : arr_str) { sb.append(e); sb.append(divide_str); } sb.delete(sb.length() - divide_str.length(), sb.length()); return sb.toString(); } }