Java Array Merge mergeStringArrayFromIndex(String[] arrayString, int i)

Here you can find the source of mergeStringArrayFromIndex(String[] arrayString, int i)

Description

merge String Array From Index

License

Open Source License

Declaration

public static String mergeStringArrayFromIndex(String[] arrayString, int i) 

Method Source Code

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

public class Main {
    public static String mergeStringArrayFromIndex(String[] arrayString, int i) {
        StringBuilder sb = new StringBuilder();

        for (; i < arrayString.length; i++) {
            sb.append(arrayString[i]);/*from  w  w  w.j a  v a 2  s .co m*/
            sb.append(' ');
        }

        if (sb.length() != 0) {
            sb.deleteCharAt(sb.length() - 1);
        }
        return sb.toString();
    }
}

Related

  1. mergeStringArray(String[] array)
  2. mergeStringArray(String[] array, String seperator)
  3. mergeStringArray(String[] ary1, String[] ary2)
  4. mergeStringArray(String[] inp1, String[] inp2)
  5. mergeStringArray(String[] input)
  6. mergeStringArrays(String array1[], String array2[])
  7. mergeStringArrays(String array1[], String array2[], String array3[])
  8. mergeStringArrays(String[] array1, String[] array2)
  9. mergeStringArrays(String[][] arrayOfArrays)