Java Array to String ArrayToString(Object[] array, String conv)

Here you can find the source of ArrayToString(Object[] array, String conv)

Description

Array To String

License

Apache License

Declaration

public static String ArrayToString(Object[] array, String conv) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String ArrayToString(Object[] array, String conv) {
        String strReturn = "";
        int length = array.length;
        if (length > 0) {
            for (int i = 0; i < length - 1; i++) {
                strReturn += array[i].toString() + conv;
            }/*  w  w w  .  java  2  s .com*/
            strReturn += array[length - 1].toString();
        }
        return strReturn;
    }
}

Related

  1. arrayToString(Object[] array)
  2. arrayToString(Object[] array)
  3. arrayToString(Object[] array)
  4. arrayToString(Object[] array)
  5. arrayToString(Object[] array)
  6. arrayToString(Object[] array, String delim, int maxValues, boolean useBrackets)
  7. arrayToString(Object[] array, String prefix, String suffix, String separator)
  8. arrayToString(Object[] array, String sep)
  9. arrayToString(Object[] array, String separator)