Loading video...
If Logic
- If statements allow a program to make a decision
- If statements require yes or no type questions
- If statements take a desired action based on the answer to that question
- Java if statements follow If...Else... logic
If Logic
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.
- Intro
- The Mighty 'If'
- Conditional Statements in Java
- Pseudocode
- Compound Assignment Operators
- Boolean Logical Operators
- Example 1: Program that Determines the Larger of Two Numbers
- Example 2: Determine the Largest and Smallest Entry
- Example 3: Determine if a Number is Odd or Even
- Example 4: Determine if Three Values Could Form a Triangle
- Example 5: Run Application for Triangle
- Example 6: Basic Ifâ¦Else Statement
- Example 7: Basic Ifâ¦Else Ifâ¦Else Statement
- Example 8: Catch Possibilities if User Enters Invalid Numbers
- Example 9: Basic Switch Statement

































Start Learning Now
Our free lessons will get you started (Flash® 10 required).
Sign up for Educator.comGet immediate access to our entire library.
Features Overview