• Online, Self-Paced
Course Description

This 11-video course examines the use of loops in Java, where iterative control structures are named for-loops, while loops, and do-while loops. This course opens by studying simple for-loops and introduces the concepts of the check expression, the loop variable, and the UPDATE statement. You will learn how to use enhanced for-loops, popular for iterating over arrays and collections. Participants then explore how to short-circuit a loop by using the break statement, and how to short-circuit the current iteration by using continue. Once a break statement is encountered in a loop, it is automatically terminated and the program control resumes at the next statement following the loop. The course then demonstrates how to do this in the context of for-loops, while loops, and do-while loops. You will learn to identify situations where for-loops are preferable to while loops. Finally, examine the dangers of infinite looping in the context of while looping, and learn to identify common pitfalls that lead to infinite looping and how to avoid these pitfalls.

Learning Objectives

{"discover the key concepts covered in this course"}

Framework Connections

The materials within this course focus on the Knowledge Skills and Abilities (KSAs) identified within the Specialty Areas listed below. Click to view Specialty Area details within the interactive National Cybersecurity Workforce Framework.