Hey, I hope you can help me with a prog i'm making. Everything is working well except a part where i want to repeat the riddle if the answer isnt correct. here's the bit of the bode where i need help
well this way it would just finish the code once you get the wrong answer, but i need 2 repeat the riddle 2 be able 2 try again.
Thanks
Code:
System.out.println("Riddle:blablabla");
riddleanswer = scanner.nextLine();
if (riddleanswer.equals("2") || riddleanswer.equals("two")) {
System.out.println("Great!");
} else {
System.out.println("Upss..");
Thanks
Comment