#Scanner input on same line

7 messages · Page 1 of 1 (latest)

fluid heath
#
System.out.print("Enter your selection: ");
menuItem = keyboard.nextLine();``` is not producing the results that I'm looking for, instead of
`Enter your selection: 1` I have
```Enter your selection: 
1```
gritty wagonBOT
#

This post has been reserved for your question.

Hey @fluid heath! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

eager hill
#

That's an issue with your IDE, most likely

#

it will look correct on any other sensible ide

fluid heath
#

thank you

gritty wagonBOT
# fluid heath thank you

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.