Make Decisions
Use conditional logic to control flow based on the input.
We'll cover the following
Now that Java can take input, let’s make it respond to that input. You’ll use if, else, and comparison operators in this lesson to help Java make decisions.
Goal
You’ll aim to:
Use
if
,else if
, andelse
.Compare numbers and strings.
Control logic based on conditions.
Create a free account to view this lesson.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Educative's Terms of Service and Privacy Policy