Here you can find the source of formatarNumeroBr(Double numero)
public static String formatarNumeroBr(Double numero)
//package com.java2s; //License from project: Open Source License import java.text.NumberFormat; import java.util.Locale; public class Main { private static NumberFormat formatador; public static String formatarNumeroBr(Double numero) { initNumberFormat();//from w w w. j a va 2 s .co m return formatador.format(numero); } private static void initNumberFormat() { if (formatador == null) { formatador = NumberFormat.getInstance(new Locale("pt", "br")); } } }