Slide 1Flow of Control Chapter 3 Slide 2 Objectives learn about Java branching statements learn about loops learn about the type boolean (optional) learn to use color and…