Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static String convertIntArrayToString(int[] ran) { return convertIntArrayToString(ran, " "); } public static String convertIntArrayToString(int[] ran, String split) { StringBuilder s = new StringBuilder(); for (int n = 0; n < ran.length; n++) { s.append(ran[n] + split); } return s.toString(); } }