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.
I submitted one accidentally so it is incorrect, but none of the things I tried worked for the Java 15 challenge. There's some problem with the test code. It appears to be doing an explicit character type check for ASCII characters which is failing in Java 15. I've tried a number of code samples to pass the test. They worked in my local environment, so there's something wrong with this test for Java 15. I found the issue with the Indian currency is not a problem. That can be converted properly, but the currency symbol for China and some non-breaking spaces in the French formatting are not causing the tests to fail. I would give more detail, but the text box is not letting me scroll either
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 →
I submitted one accidentally so it is incorrect, but none of the things I tried worked for the Java 15 challenge. There's some problem with the test code. It appears to be doing an explicit character type check for ASCII characters which is failing in Java 15. I've tried a number of code samples to pass the test. They worked in my local environment, so there's something wrong with this test for Java 15. I found the issue with the Indian currency is not a problem. That can be converted properly, but the currency symbol for China and some non-breaking spaces in the French formatting are not causing the tests to fail. I would give more detail, but the text box is not letting me scroll either