Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting a java program to read user input from a keyboard

807600Nov 10 2007 — edited Nov 10 2007
I'm very new to java and struggling to write a game which asks the user "Would you like to play (y/n) :". The user must then enter y or n. My problem is with getting the program to read the user input. can anyone help?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2007
Added on Nov 10 2007
2 comments
168 views