The break statement
The break statement can be used to break out of a loop
When a break is encountered, the execution of the loop is stopped, and the statement after the loop is executed
for(num = 1; num <= 20; num++) { if (num == 12) break; System.out.println(“num is ” + num);}System.out.println(“I’m after the loop!”);