Here you can find the source of getDecimalFormatter()
private static NumberFormat getDecimalFormatter()
//package com.java2s; //License from project: Apache License import java.text.DecimalFormat; import java.text.NumberFormat; public class Main { private static NumberFormat getDecimalFormatter() { NumberFormat format = DecimalFormat.getNumberInstance(); format.setMinimumFractionDigits(1); format.setMaximumFractionDigits(1); return format; }/*w ww .ja v a 2 s . c om*/ }