About the role of break in loops (including nested loops)

I found a sentence in the figure below in "Java Basics". I have been entangled in whether break ends the left and right loops or just ends the current loop. Through the code verification, it is really as the book says, break will only end the current one. cycle

write picture description here

write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326054810&siteId=291194637