+ 1
Java Code Practice - Multiple Exceptions Not Working!
donât understand why my outputs are not accepted in case #2 and case #5. this is the code: code: https://code.sololearn.com/cA4jXbSL1n6Y/?ref=app Test Case 2: Input: 5 0 Your Output: Error: division by zero Expected Output: Error: division by zero Why is this wrong if the output is the same!?
3 Answers
+ 4
riniwtz
Don't write this line "Đrror: division by zero" manually.
Copy from the description and paste in the code. Then run your code.
+ 1
I á´á´ "TÉŞá´á´" I realized that the ASCII value of âEâ in the word âErrorâ is 1045.
Thank you for answering!
0
A͢J I encountered the same error when I copied and pasted the messages to be printed from description/comments. I just solved it by manually typing it.