Here you can find the source of joinDoubles(List
public static String joinDoubles(List<Double> list)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static String joinDoubles(List<Double> list) { String joined = ""; for (double item : list) { joined += item + " "; }// ww w.j a v a2 s . co m return joined.trim(); } }