Here you can find the source of convertDoubleArrayToString(double[] value, String separator)
public static String convertDoubleArrayToString(double[] value, String separator)
//package com.java2s; //License from project: Open Source License public class Main { public static String convertDoubleArrayToString(double[] value, String separator) { if (value.length == 0) { return ""; }/*from w ww. ja v a 2s. c o m*/ StringBuilder sb = new StringBuilder(); for (double v : value) { sb.append(v); sb.append(separator); } sb.setLength(sb.length() - separator.length()); return sb.toString(); } }