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.
// Write your code here.LocaleINDIA=newLocale("en","IN","Rs.");NumberFormatNus=NumberFormat.getCurrencyInstance(Locale.US);NumberFormatNindia=NumberFormat.getCurrencyInstance(INDIA);NumberFormatNchina=NumberFormat.getCurrencyInstance(Locale.CHINA);NumberFormatNfrance=NumberFormat.getCurrencyInstance(Locale.FRANCE);// Write your code here.Stringus=Nus.format(payment);Stringindia=Nindia.format(payment);Stringchina=Nchina.format(payment);Stringfrance=Nfrance.format(payment);
String india = Nindia.format(payment);
String china = Nchina.format(payment);
String france = Nfrance.format(payment);
`
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Currency Formatter
You are viewing a single comment's thread. Return to all comments →
This code may help you understand essier
`