NumberFormat nf = NumberFormat.getCurrencyInstance(new Locale("tr","TR"));
System.out.println(nf.format(123));
output:
123,00 TL
in default jvm thinks you choose US or it will check the system current environment. but if you like to change it. you can do the code above.
No comments:
Post a Comment