We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Java Currency Formatter
Java Currency Formatter
Sort by
recency
|
842 Discussions
|
Please Login in order to post a comment
I confirm that test is broken.
My solution -
About Currency Format problem Your submission contains non ASCII characters, we dont accept submissions with non ASCII characters for this challenge. when java is using japa yen symbol for chinese yuan then how do we fix this please someone make it correct
CODE :
}
without using any inbuilt methods or classes can we write this code
Working code : // Write your code here.
String us = NumberFormat.getCurrencyInstance(Locale.US).format(payment); String india = NumberFormat.getCurrencyInstance(new Locale("en", "IN")).format(payment); String china = NumberFormat.getCurrencyInstance(Locale.CHINA).format(payment); String france = NumberFormat.getCurrencyInstance(Locale.FRANCE).format(payment);