Here you can find the source of printPoint(double[] ds)
private static String printPoint(double[] ds)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { private static String printPoint(double[] ds) { List<Double> list = new ArrayList<Double>(ds.length); for (double d : ds) { list.add(d);// w ww . j av a 2 s .c o m } return list.toString(); } }