[JAVA - BEGINEER] Need to press ENTER twice to get the program to output everything
Hello guys, I've tried to search up what it could be, I found out that it could be related to the buffer. However I tried to use
sc.nextLine();
to clear the buffer but it didn't seem to help.
This is for a university project so the Output must be the expected.
Thanks in advance5 Replies
⌛
This post has been reserved for your question.
Hey @bk (🎃)! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Restarting the IDE solved the issue.
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
/clone
Post Closed
This post has been closed by <@265579618457616394>.