import java.util.Formatter; public class MainClass { public static void main(String args[]) { Formatter fmt = new Formatter(); fmt.format("%,.2f", 4356783497.34); System.out.println(fmt); } }
4,356,783,497.34