Here you can find the source of getDecimalFormat()
public static DecimalFormat getDecimalFormat()
//package com.java2s; /*/* ww w . j a v a 2 s . co m*/ * License GNU LGPL * Copyright (C) 2012 Amrullah <amrullah@panemu.com>. */ import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.Locale; public class Main { private static Locale loc = new Locale("es", "PY"); public static DecimalFormat getDecimalFormat() { NumberFormat nf = NumberFormat.getNumberInstance(loc); return (DecimalFormat) nf; } }