for each loop and traversed the way out of the cycle

1, for loop out of the loop

(1) break ---- all out of circulation

(2) continue ---- out of the current cycle, and continues the next cycle

2, each out of the loop traversal

(1) return true ---- equivalent for inside continue, out of the current cycle, and continues the next cycle

(2) return false ---- corresponds to the inside for the break, out of all loops

Guess you like

Origin www.cnblogs.com/pheosia/p/11428122.html