Here you can find the source of intArraysToString(int[] arrays)
public static String intArraysToString(int[] arrays)
//package com.java2s; public class Main { public static String intArraysToString(int[] arrays) { String result = ""; if (arrays != null && arrays.length > 0) { for (int value : arrays) { result += value + " "; }// w w w . j a v a 2s. c o m result = result.substring(0, result.length() - 1); } return result; } }