Java Array to String arrayToString(Object... keys)

Here you can find the source of arrayToString(Object... keys)

Description

array To String

License

Open Source License

Declaration

private static String arrayToString(Object... keys) 

Method Source Code

//package com.java2s;

public class Main {
    private static String arrayToString(Object... keys) {
        StringBuffer buffer = new StringBuffer();
        for (int i = 0; i < keys.length; i++) {
            buffer.append(keys[i]);//  w  w  w.j  a va 2 s .c  om
            if (i != keys.length - 1) {
                buffer.append(",");
            }
        }
        return buffer.toString();
    }
}

Related

  1. arrayToString(Object array)
  2. arrayToString(Object array)
  3. arrayToString(Object array)
  4. arrayToString(Object obj)
  5. arrayToString(Object obj[])
  6. arrayToString(Object... objects)
  7. arrayToString(Object[] a)
  8. arrayToString(Object[] anArray, String aPrefix, String aSeparator, String aSuffix, String anEscapeChars, char anEscapeSymbol)
  9. arrayToString(Object[] args, String separator)