Here you can find the source of toTextString(int[] array)
public static String toTextString(int[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static String toTextString(int[] array) { String string = ""; for (int val : array) { string += val + " "; }/* w w w . ja v a 2 s. c o m*/ string.trim(); return string; } public static String toTextString(double[] array) { String string = ""; for (double val : array) { string += val + " "; } string.trim(); return string; } public static String toTextString(Double[] array) { String string = ""; for (Double val : array) { string += val + " "; } string.trim(); return string; } }