Skip to Main Content

Java Programming

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!

What is the code for Yes/No option from command prompt

807606Apr 20 2007 — edited Apr 20 2007
I was new to Java. Can u send me code for this.
For example,
Menu:
1. A
2. B
3. C

Select u r choice: 1
// some output

Do u wish to continue: Yes/No
if (yes) go to Menu
else
Exit:

It must execute from command prompt
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 18 2007
Added on Apr 20 2007
3 comments
586 views