Here you can find the source of formatDouble(double value)
public static synchronized String formatDouble(double value)
//package com.java2s; //License from project: Apache License import java.text.NumberFormat; import java.util.Locale; public class Main { private static final NumberFormat DOUBLE_FORMATTER = NumberFormat.getNumberInstance(Locale.GERMAN); public static synchronized String formatDouble(double value) { return DOUBLE_FORMATTER.format(value); }/*from www .j a v a 2 s. c om*/ }