Here you can find the source of longsToString(long... longs)
public static String longsToString(long... longs)
//package com.java2s; //License from project: Open Source License public class Main { public static String longsToString(long... longs) { StringBuilder string = new StringBuilder(); for (int i = 0; i < longs.length; i++) { long aLong = longs[i]; string.append(aLong);/* w ww .ja v a 2 s . co m*/ if (i + 1 < longs.length) string.append(","); } return string.toString(); } }