Java Array to String arrayToString(String in[])

Here you can find the source of arrayToString(String in[])

Description

Return array string values as blank separated string.

License

Open Source License

Parameter

Parameter Description
in a parameter

Declaration

public static String arrayToString(String in[]) 

Method Source Code

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

public class Main {
    /**/* w  w  w  .j a v  a 2 s . c  o m*/
     * Return array string values as blank separated string.
     * 
     * @param in
     * @return
     */
    public static String arrayToString(String in[]) {
        if (in == null)
            return null;
        String ret = "";
        for (int i = 0; i < in.length; i++) {
            ret += in[i] + " ";
        }
        return ret.trim();
    }
}

Related

  1. arrayToString(Object[] objs, String separator)
  2. ArrayToString(Object[] row, StringBuilder sbf)
  3. arrayToString(Object[] subject)
  4. arrayToString(String array[], String separator)
  5. arrayToString(String format, double[] array)
  6. arrayToString(String values[])
  7. arrayToString(String[] a, String delim)
  8. arrayToString(String[] a, String separator)
  9. arrayToString(String[] args, String delimiter)