import java.text.*; import java.util.Locale; public class Numbriformaat3{ public static void main(String argumendid[]){ DecimalFormatSymbols dfs=new DecimalFormatSymbols(); dfs.setDecimalSeparator(','); dfs.setGroupingSeparator(' '); DecimalFormat df=new DecimalFormat("#,#0.00", dfs); System.out.println(df.format(5.7362)); System.out.println(df.format(51432)); System.out.println(df.format(14732829412)); } }