The break statement in Java terminates the loop immediately, and the control of the program moves to the next statement following the loop.
-
Updated
Apr 12, 2023 - Java
The break statement in Java terminates the loop immediately, and the control of the program moves to the next statement following the loop.
Add a description, image, and links to the break-keyword topic page so that developers can more easily learn about it.
To associate your repository with the break-keyword topic, visit your repo's landing page and select "manage topics."