Java tutorial
//package com.java2s; import java.util.List; public class Main { private final static String SEPERATOR = "\t"; private static String longSetToString(List<?> list) { final StringBuffer dataSB = new StringBuffer(); for (int i = 0; i < list.size(); i++) { dataSB.append(list.get(i)); if (i < list.size() - 1) { dataSB.append(SEPERATOR); } } return dataSB.toString(); } }