run time error in java for two test cases.
CHEWBACCA AND NUMBER runtime error
Hi Shantanu
Please share the link to your code.
Hi Shantanu
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.
where is the option to share the code.
where is the option to share the code. Monitored section is not available right now.
Hi Shantanu
Firstly, if you are storing the input given by the user in long, you need to use scn.nextLong().
This will remove the runtime error you are facing.
Also, your code doesn’t work for the case 932711047202.
Hi @shantanu.kaushik21
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.