Wednesday, July 06, 2011

java turkish currency

I was implementing some stuff in java and there I needed to show number as currency in turkish. here it comes


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:

apple iphone 16 return in UK Glasgow

 After I saw that WhatsApp desktop is not working(I tried 2 different laptops, uninstalled or resetting the app but did not work) and uBlock...