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

14th Feb 2020, 8:30 PM
Mahmoud Hamed
Mahmoud Hamed - avatar
5 ответов
+ 1
Put the code inside else within curly braces { } because there is more than one line of code.
14th Feb 2020, 8:39 PM
Avinesh
Avinesh - avatar
0
i wrote here
14th Feb 2020, 8:49 PM
Mahmoud Hamed
Mahmoud Hamed - avatar
0
and thank you Avinesh
14th Feb 2020, 8:49 PM
Mahmoud Hamed
Mahmoud Hamed - avatar
0
Mahmoud Hamed you're welcome
14th Feb 2020, 8:50 PM
Avinesh
Avinesh - avatar