Java Integer Array to String intArrayToStringArray(int[] ids)

Here you can find the source of intArrayToStringArray(int[] ids)

Description

int Array To String Array

License

Apache License

Declaration

public static String[] intArrayToStringArray(int[] ids) 

Method Source Code

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

public class Main {
    public static String[] intArrayToStringArray(int[] ids) {
        String[] res = new String[ids.length];
        int j = 0;

        for (int i : ids) {
            res[j++] = Integer.toString(i);
        }//ww  w .ja va  2  s. co m
        return res;
    }

    public static String[] intArrayToStringArray(int[] ids, String prefix) {
        String[] res = new String[ids.length];
        int j = 0;

        for (int i : ids) {
            res[j++] = prefix + i;
        }
        return res;
    }
}

Related

  1. intArrayToString(int[] intArray)
  2. intArrayToString(int[] intArray, String conv)
  3. intArrayToString(int[] ints)
  4. intArrayToString(int[] ints)
  5. intArrayToString(String tag, int[] arr)
  6. intsToString(int ints[])
  7. intsToString(int[] ary)
  8. intsToString(int[] b)
  9. intsToStrings(final int... numbers)