Here you can find the source of vector2string(int[] vector)
public static String vector2string(int[] vector)
//package com.java2s; //License from project: Apache License public class Main { public static String vector2string(int[] vector) { if (vector == null || vector.length == 0) return null; String str = String.valueOf(vector[0]); for (int i = 1; i < vector.length; i++) { str += " " + vector[i]; }/*w ww . jav a 2 s . c om*/ return str; } }