Enhanced For Loop, index not needed ForEach, loop over a Collection for (int no : N) N.forEach(x -> System.out.println(x))
while True: line = input('>') if (line == 'quit'): break print(line) print('Done')
Labels, identified with a colon before the loop Switch, value must be same type to match outer: while(true) inner: for(let i=0 ... ) if (i == 5) break outer
Switch evaluates once, then compares Break parameter to exit nested loops for ($i ... ) for ($j ... ) break 2;