Here you can find the source of roundjoin(Collection s, String delimiter)
public static String roundjoin(Collection s, String delimiter)
//package com.java2s; // it under the terms of the GNU General Public License as published by import java.util.Collection; import java.util.Iterator; public class Main { public static String roundjoin(Collection s, String delimiter) { StringBuffer buffer = new StringBuffer(); Iterator iter = s.iterator(); while (iter.hasNext()) { buffer.append(String.valueOf(Math.round(328.084 * ((Double) iter.next())) / 100.00)); if (iter.hasNext()) { buffer.append(delimiter); }/*from w w w .j a v a 2 s. c o m*/ } return buffer.toString(); } }