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
|
879 Discussions
|
Please Login in order to post a comment
I tried different approaches but due to unicode characters the anwer never comes as valid. I even tried some solution from the comments but neither worked. this is my output, I can't see any difference
Your Output (stdout)
US: $12,324.13 India: Rs.12,324.13 China: ¥12,324.13 France: 12 324,13 €
Expected Output
US: $12,324.13 India: Rs.12,324.13 China: ¥12,324.13 France: 12 324,13 €
import java.util.; import java.text.;
public class Solution {
}
This is the solution. I hope that helped:0
RUN CODE WITH JAVA 8!!!!!
Java remains one of the most powerful and versatile programming languages out there! Cricbet99 club
rong Answer Input (stdin) 12324.134 Your Output (stdout) US: $12,324.13 India: Rs.12,324.13 China: ¥12,324.13 France: 12 324,13 €'