Java Array Copy copyArrayToStr(String[] src, String del)

Here you can find the source of copyArrayToStr(String[] src, String del)

Description

copy Array To Str

License

Open Source License

Declaration

public static String copyArrayToStr(String[] src, String del) 

Method Source Code

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

public class Main {
    public static String copyArrayToStr(String[] src, String del) {
        StringBuilder sb = new StringBuilder();
        for (String s : src)
            sb.append(s + del);/*from www .  ja  va 2s . c o m*/
        String toret = sb.toString();
        toret = toret.substring(0, toret.length() - del.length()) + "\n";
        src = null;
        return toret;
    }
}

Related

  1. copyArrayExceptLast(String[] array)
  2. copyArrayMax(int[] local, int[] merged)
  3. copyArrayRange(final byte[] value, int start, int end)
  4. copyArrays(byte[] dest, byte[] source, int fromIdx)
  5. copyArrays(byte[] src, int srcOffset, byte[] dst, int dstOffset, int numBytes)
  6. copyArrayWhenNotNull(byte[] source)
  7. copyBytes(byte[] data, int from, int to)
  8. copyExcept(E[] orig, E excludedElem)
  9. copyIfExceeded(int[] arr, int len)