0

i wrote a small game in java but it's not working well , as there is a problem in boolean or while loop so where is the bug ?

https://onlinegdb.com/r1EazKVXL

2/14/2020 8:30:36 PM

Mahmoud Hamed

6 Answers

New Answer

+1

Put the code inside else within curly braces { } because there is more than one line of code.

0

Move your code into your sololearn profile in code bits and share it. Otherwise is difficult to get help. I cannot make changes to your code form that link you provide, in order to see what is going wrong. As i see you just have wrong name of main class. In sololearn it works ok. https://code.sololearn.com/c4ujxuiIW8fW/#java

0

http://www.sololearn.com/app/java/playground/cb58q9HNcfU7/

0

i wrote here

0

and thank you Avinesh

0

Mahmoud Hamed you're welcome