0

How to do it?

How can I make the program that when I write the word "again" the whole game will start over again (restart)? https://code.sololearn.com/cGStIEUdc4HK/?ref=app

25th Jun 2020, 4:15 PM
Yahel
Yahel - avatar
3 ответов
0
String again; while(true){ //**your game** again = scanner.nextLine(); if(again != „again“) return; }
25th Jun 2020, 5:03 PM
JaScript
JaScript - avatar
0
its not working...
25th Jun 2020, 5:26 PM
Yahel
Yahel - avatar
0
Well you should have added some comments to make it w Easier
26th Jun 2020, 9:47 AM
Varun Sharma
Varun Sharma - avatar