nus-cs2113-AY2324S2 / forum

2 stars 0 forks source link

Question on Week3-Coding Assessment Exercise 10 #4

Closed HenryGan138 closed 5 months ago

HenryGan138 commented 5 months ago

After multiple try, my running code cannot match the expected output on the test compiler, while there is no problem on my local compiler. I am wondering if there is any mistake on the test input. Thank you for your assistance.

屏幕截图 2024-01-27 230956
STeng618 commented 5 months ago

Try importing all the libraries used in your code?

JianJiaT commented 5 months ago

I had the same issue, but it turned out to be me adding an unnecessary space after the colon

HenryGan138 commented 5 months ago

Thanks, both of your solutions are helpful. After I importing the libraries, and changing system.out.println() into system.out.print(), it works successfully.