So far, we've explored primitive data types and Java syntax. As we've seen, Java programs follow the instructions we provide them, such as printing values to the console.
We can also write Java programs that can follow different sets of instructions depending on the values that we provide to them. This is called control flow. In this lesson, we'll learn how to use control flow in our programs.