Sequential code runs every line once from top to bottom. Control flow lets programs branch depending on data with if and modern switch expressions, and repeat work cleanly using for, for-each, while and do-while loops.
More lessons in Complete Core Java