+ 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 Antworten
+ 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.