aspose file tools*
The moose likes Beginning Java and the fly likes Problem looping back to beginning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem looping back to beginning" Watch "Problem looping back to beginning" New topic
Author

Problem looping back to beginning

MP Olsen
Greenhorn

Joined: Oct 21, 2004
Posts: 9
I originally had this posted in the intermediate forum, but my second problem doesn't seem as difficult. I thought it was better suited here, so I deleted the original and moved it here.

My problem is that I want to be able to loop my program back to the beginning after it is done. With the "Would you like to play again(Y/N)" statement. I tried a Do While statement and followed the general setup of it, but I've had no luck with it. I'm not sure where my problem is because I get no error when I compile, and it runs everything up until where it asks whether I want to play again or not. Suggestions to what is wrong would be well appreciated.


[ October 21, 2004: Message edited by: MP Olsen ]
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258

Should this be:


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
MP Olsen
Greenhorn

Joined: Oct 21, 2004
Posts: 9
Well, I feel dumb after that. My fault not reading the code more carefully. I believe I had it right originally then I moved the code and it was changed. In the process, I never really realized it was different, and I guess I didn't notice it.

Thanks
[ October 21, 2004: Message edited by: MP Olsen ]
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
It's all right. A well-battered forehead is the mark of a great developer.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

and we've all been thankful of a second set of eyes at the right time. Nice catch
 
Consider Paul's rocket mass heater.
 
subject: Problem looping back to beginning