DecimalFormat class java code example
Example: java decimalformat
String pattern = "###,###.###";
DecimalFormat decimalFormat = new DecimalFormat(pattern);
String pattern = "###,###.###";
DecimalFormat decimalFormat = new DecimalFormat(pattern);