decimal format for double in java code example
Example: java double format
NumberFormat formatter = new DecimalFormat("#0.00");
System.out.println(formatter.format(4.0));
NumberFormat formatter = new DecimalFormat("#0.00");
System.out.println(formatter.format(4.0));