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: https://replit.com/@MirayDursun/Inf102Aufgabe04#Mitarbeiter.java

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.

5 Likes

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