+ 1

HELP!! what's wrong with my code(code coach)??

https://code.sololearn.com/cn8zOIaF9b11/?ref=app I can't pass one hidden test with my code but I passed the rest of four tests. I can't see what's wrong with my code... I'll appreciate any comments!!

10th Nov 2022, 11:57 AM
이참치
이참치 - avatar
5 Antworten
+ 3
oh I missed ; in this code! I fixed it
10th Nov 2022, 1:33 PM
이참치
이참치 - avatar
+ 2
Put the try-catch block maybe then exception remove
10th Nov 2022, 1:00 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 2
thank you i'll do that!! :D
10th Nov 2022, 1:02 PM
이참치
이참치 - avatar
+ 2
Still one hidden test is left unsolved...but thank you anyway it was a good chance to use try-catch!
10th Nov 2022, 1:13 PM
이참치
이참치 - avatar
+ 2
In catch block System.out.println -> it ends with terminator ';'
10th Nov 2022, 1:32 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar