Here you can find the source of parseDouble(Double data)
public static String parseDouble(Double data)
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; import java.text.NumberFormat; public class Main { public static String parseDouble(Double data) { NumberFormat nf = new DecimalFormat("#,###"); return nf.format(Math.round(data)); }/*ww w .ja v a 2 s. c om*/ }