+ 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 Answers
+ 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