20th Sep 2024, 7:55 PM
IFEANYICHUKWU HENRY
IFEANYICHUKWU HENRY - avatar
2 Respuestas
+ 1
Move lines 22-26 into where your do loop is. It’s very useful to understand how to read compiler errors. This is happening because your break is outside your loop. It looks like you were trying to put your code inside the while loop, but the do while loop only contains a condition and no code after it. References: https://www.geeksforgeeks.org/java-do-while-loop-with-examples/# https://www.w3schools.com/java/java_while_loop_do.asp
20th Sep 2024, 8:20 PM
Junior
Junior - avatar
0
Thanks Junior for your help
20th Sep 2024, 8:25 PM
IFEANYICHUKWU HENRY
IFEANYICHUKWU HENRY - avatar