Conditionals and Control Flow


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.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.