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.
Day 16: Exceptions - String to Integer
Day 16: Exceptions - String to Integer
Sort by
recency
|
972 Discussions
|
Please Login in order to post a comment
private static boolean check(String s){ try{ Integer.parseInt(s); return true; }catch (Exception e){ return false; } } I use try-catch and the answer is same, but i can't pass it!
i tried every approach i could, i am getting correct outputs as well but still encountering this error message "Compiler Message Error reading result file.You should use exception handling concepts." anyone else facing the issue or know how to fix this?
In C#
I solved the exception handling error in Swift in this way.