Java String Array to String arrayAsString(String[] stringArray)

Here you can find the source of arrayAsString(String[] stringArray)

Description

Converts an array to a String.

License

Open Source License

Parameter

Parameter Description
stringArray The array to convert to a String.

Return

The array converted to a String.

Declaration

public static String arrayAsString(String[] stringArray) 

Method Source Code

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

public class Main {
    /**/*from   w w w  . j a v a 2 s. c o m*/
     * Converts an array to a String.
     * <p>
     * No delimiter (separator) character is appended.
     * 
     * @param stringArray The array to convert to a String.
     * @return The array converted to a String.
     */
    public static String arrayAsString(String[] stringArray) {
        String s = "";
        for (int i = 0; i < stringArray.length; i++) {
            s += stringArray[i];
        }
        return s;
    }
}

Related

  1. array2str(String[] array, String delim)
  2. array2str(String[] arrayname, int length)
  3. array2string(String array[])
  4. array2string(String[] s)
  5. arrayAsString(String[] haystack)
  6. ArrayCombine(String[] array, String delimiter)
  7. arrayStringToArrayInt(final String[] as)
  8. arrayStringtoString(final String[] arrayString)
  9. arrayStringToString(String[] args)