Here you can find the source of toStringNoDigits(double[] v)
public final static String toStringNoDigits(double[] v)
//package com.java2s; import java.text.DecimalFormat; import java.text.NumberFormat; public class Main { public final static String toStringNoDigits(double[] v) { NumberFormat nf = new DecimalFormat("0"); String res = ""; for (int i = 0; i < v.length; i++) { res += (i > 0 ? "," : "") + nf.format(v[i]); }/*from ww w . j av a 2 s.c o m*/ return res + ""; } }