Code keeps running without loops

Code runs forever, even though there aren’t any loops. My AP teacher can’t find anything that’s wrong. I’ve checked for invisible characters and it still will not run.

@MadelynMeisner/FinalProjectJeopardy

1 Like

The issue might be related to waiting for user input in playerGuessOne, as it expects input from the user before the program starts. Since it’s not inside a method or block, it executes as part of the class initialization. To address this, you should move userIntInput.nextLine() inside a method, preferably within the main method, this fix should resolve the problem.

1 Like