Java Integer Array to String convertIntArrayToString(int[] value, String separator)

Here you can find the source of convertIntArrayToString(int[] value, String separator)

Description

convert Int Array To String

License

Open Source License

Declaration

public static String convertIntArrayToString(int[] value, String separator) 

Method Source Code

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

public class Main {
    public static String convertIntArrayToString(int[] value, String separator) {
        if (value.length == 0) {
            return "";
        }//w w  w.ja v a 2  s . co  m
        StringBuilder sb = new StringBuilder();
        for (int v : value) {
            sb.append(v);
            sb.append(separator);
        }
        sb.setLength(sb.length() - separator.length());
        return sb.toString();
    }
}

Related

  1. arrayIntsToString(int... lst)
  2. arrayIntToString(int[] arrayInt)
  3. convertIntArrayToString(int[] data)
  4. convertIntArrayToString(int[] data)
  5. inputStreamToStr(InputStream is)
  6. inputStreamToStr(InputStream is)
  7. intArray2string(int intarr[])
  8. intArray2String(int[] value)