This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello, I've been struggling with this program that keep running loop forever. It supposed be stop when player get the right guess number. I couldn't find what's wrong with my program So, please anyone could help me? It's due this Tuesday, May 7. THANK YOU!!
Please use code tags in the future so that your code is easier to read.
Besides that in your logic you should use .equals instead of ==. But I am not the most experienced so I may be wrong, if someone else on the forum would make sure that is right.
If there are any other errors please ask.
Hi, and welcome to CodeRanch!
I've edited your post to include code tags, which makes the code segments of your post a bit easier to read. You can read up how to UseCodeTags (<-click) to find out how this works.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.