0
Please đ„ș help me on this code
https://sololearn.com/compiler-playground/cJF7C9pQ0FG0/?ref=app
2 Answers
+ 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
0
Thanks Junior for your help