I have looked at other StackOverflow questions on this topic but being a new developer I am extremely confused. I am trying to write a program that asks the user riddles and restarts after the user gets three wrong answers on one specific riddle. The code that needs the restart is:
if (wrongAnswer == 3){
System.out.println("You have failed three times.");
restartApp();
The code where I need to restart should go right where the restartApp() is right now. Thanks in advance!