Closed HenryGan138 closed 5 months ago
Try importing all the libraries used in your code?
I had the same issue, but it turned out to be me adding an unnecessary space after the colon
Thanks, both of your solutions are helpful. After I importing the libraries, and changing system.out.println() into system.out.print(), it works successfully.
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.