Here you can find the source of intArrayToStringArray(int[] ids)
public static String[] intArrayToStringArray(int[] ids)
//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; } }