Java Currency Formatter

  • + 0 comments

    I got my submission to pass by switching to Java 8 from java 15. But I left my workarounds for some of the problems. HackerRank shoul have different answers for the different Java versions, like they do with different SQL varieties.

    Three differences: * Java 15 uses the Rupee symbol, but the answer wanted "Rm.". Had to create a custom currency fix for that. * Java 15 uses a different "Yen"/"Yuan" symbol than Java 8. * Java 15 uses a "NARROW NO-BREAK SPACE" (U+202F) code point for the grouping/thousands chaSPracter. The answer used a regular space character SPACE (U+0020).