Run button does not start any process

Question: When I press the Run button, any process related to the codes I wrote on the console screen does not proceed. (In Java)

Replit Profile:

Hey @MirayDursun! Welcome to the community!

If I am correct, your program isn’t printing anything into the console because you asked the user to input something.

You can either remove sc.nextLine(); on line 13 or pass a prompt like "Press Enter to continue" into the function so that the user can proceed with the remainder of the program.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.