Java Array to String arrayToString(Object[] objs)

Here you can find the source of arrayToString(Object[] objs)

Description

array To String

License

Open Source License

Parameter

Parameter Description
objs a parameter

Declaration

public static String arrayToString(Object[] objs) 

Method Source Code

//package com.java2s;

public class Main {
    /**/* w  w w.  j a  va  2s  .  c o  m*/
     * 
     * @param objs
     * @return
     */
    public static String arrayToString(Object[] objs) {
        StringBuffer buffer = new StringBuffer();
        if (objs != null) {
            for (int i = 0; i < objs.length; i++) {
                if (buffer.length() > 0)
                    buffer.append("\n");
                buffer.append(objs[i]);
            }
        }
        return buffer.toString();
    }
}

Related

  1. arrayToString(Object[] objects)
  2. arrayToString(Object[] objects)
  3. arrayToString(Object[] objects)
  4. arrayToString(Object[] objects)
  5. arrayToString(Object[] objs)
  6. arrayToString(Object[] objs, boolean stripPackageNames)
  7. arrayToString(Object[] objs, String separator)
  8. ArrayToString(Object[] row, StringBuilder sbf)
  9. arrayToString(Object[] subject)