Java Array Implode implodeArray(String[] inputArray, String glueString, int start)

Here you can find the source of implodeArray(String[] inputArray, String glueString, int start)

Description

implode Array

License

Open Source License

Declaration

public static String implodeArray(String[] inputArray, String glueString, int start) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String implodeArray(String[] inputArray, String glueString, int start) {
        if (inputArray.length > start) {
            String msg = "";
            boolean isFirst = true;
            for (int i = start; i < inputArray.length; i++) {
                if (!isFirst)
                    msg += glueString;// ww w  .  j a v a 2s  . co  m
                msg += inputArray[i];
                isFirst = false;
            }
            return msg;
        }
        return "";
    }
}

Related

  1. implode(String[] inputArray, String glueString)
  2. implode(String[] values, String separator, String beforeEach, String afterEach)
  3. implodeArray(Object[] array)
  4. implodeArray(Object[] items, String prefix, String suffix, String delimiter, String lastItemSuffix)
  5. implodeArray(String[] inputArray, String glueString)
  6. implodeString(String[] strArray, String strDelim)
  7. implodeStringArray(Object[] pieces, String delim)