Using break to Exit a Loop - Java samples - Programming tutorials on Java, C, C++, PHP, ASP
By using break, you can force immediate termination of a loop, bypassing the conditional expression and any remaining code in the body of the loop. When a break statement is encountered inside a loop, the loop is terminated and program control resumes at ...