Java Array Print printArray(Object[] strArray, String split)

Here you can find the source of printArray(Object[] strArray, String split)

Description

print Array

License

Open Source License

Declaration

public static String printArray(Object[] strArray, String split) 

Method Source Code

//package com.java2s;

public class Main {

    public static String printArray(Object[] strArray, String split) {

        String result = "";
        for (int i = 0; i < strArray.length - 1; i++) {
            result += String.valueOf(strArray[i]) + split;
        }//from  ww w.j  av  a2  s  .  co  m
        result += strArray[strArray.length - 1];

        return result;

    }
}

Related

  1. printArray(Object[] arr)
  2. printArray(Object[] array)
  3. printArray(Object[] array)
  4. printArray(Object[] cells)
  5. printArray(Object[] o)
  6. printArray(String arrayLabel, Object[] array)
  7. printArray(String[] arr, char separator)
  8. printArray(String[] s)
  9. printArray(String[] s)