In this part we introduce conditionals and loops. We discuss basic if, if-else, and if-else-if constructs and combining basic logical operators. We cover for and while loops as well as "enhanced for loops" in Java for arrays and collections.
This video series was designed for Computer Science II (CSCE 156) in the Department of Computer Science & Engineering at the University of Nebraska-Lincoln. The presentation of these videos assumes prior programming experience with at least one high-level programming language.
0:00 Conditionals and loops
1:57 if-else
2:35 if-else-if
3:35 boolean variables
5:00 Logical and operator
5:53 Logical or operator
6:15 Using good style
7:43 Loops
8:50 For loops
9:52 While loops
10:15 Infinite loops
11:45 For each loops