Im a beginner with java and i am following tutorials by Thenewboston on youtube. I wanted to go to a bit more advanced (in my opinion... but not really) things. So heres the c
like in C or C++ you could use a while statement , askin after the execution is the user want go to exit or not
while (answer){ // ...code... }
also you could use do..while
do{ // ...code... }while(condition)