Learn Java in 2018, If Statements, Learn Java on Codecademy

Lesson Summary

In this lesson we go over Java if statements. An if statement in Java is an expression that evaluates to either true or false. If the expression evaluates to true then it runs code that is within curly braces, if the expression is false it will never run the code within the curly braces.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required