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.
This is a ridiculous exercise! It needs to ignore the comments. I had the code in my Java try/catch block commented and it would fail the test, even though it was obvious the exception was being handled and that the output was correct.
When I removed the comments, the tests passed. Completely absurd! The test parser should be smart enough to ignore comment lines. Is this really the best you can do HackerRank? I'm really unimpressed.
Day 16: Exceptions - String to Integer
You are viewing a single comment's thread. Return to all comments →
This is a ridiculous exercise! It needs to ignore the comments. I had the code in my Java try/catch block commented and it would fail the test, even though it was obvious the exception was being handled and that the output was correct.
When I removed the comments, the tests passed. Completely absurd! The test parser should be smart enough to ignore comment lines. Is this really the best you can do HackerRank? I'm really unimpressed.