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.
Be aware that this problem is outdated for Java 15. In Java 15, a different symbol is used when formatting for India. I ran that same code in Java 8 and it gave the correct output.
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 →
Be aware that this problem is outdated for Java 15. In Java 15, a different symbol is used when formatting for India. I ran that same code in Java 8 and it gave the correct output.