Fundamentals of

Totally free education on the Internet

About · FAQ ·Tell a Friend · Comments  · Course Home Page  ·  IT Learning Center

About this Course

IT_coverSm07.jpg (20692 bytes)

This course is intended beginning computer hobbyists and first-year IT students.

The free online textbook for this course is Sams Teach Yourself Java 2 in 24 Hours. Read the Introduction to the book.

offiste01.jpg (430 bytes) Indicates links that take you away from the Free-Ed.Net site. Use the links on these offsite pages carefully, and use the Back function on your browser to return to the assigments.


Study Aids

offiste01.jpg (430 bytes) Using the Java 2 Software Development Kit

offiste01.jpg (430 bytes) Programming with the Java 2 Software Development Kit

Lesson 7. Using Conditional Tests to Make Decisions

In this lesson you will learn about:

  • Testing to see whether conditions are met
  • Using the if statement for basic conditional tests
  • Using other statements in conjunction with if
  • Testing whether one value is greater than or less than another
  • Testing whether two values are equal or unequal
  • Using else statements as the opposite of if statements
  • Chaining several conditional tests together
  • Using the switch statement for complicated conditional tests
  • Creating complicated tests with the ternary operator

offiste01.jpg (430 bytes) Introduction to the lesson

Reading Assignments

Read the following sections from your free online textbook:

offiste01.jpg (430 bytes)Testing a Condition
offiste01.jpg (430 bytes)if Statements
offiste01.jpg (430 bytes)if-else Statements
offiste01.jpg (430 bytes)switch Statements
offiste01.jpg (430 bytes)The Conditional Operator

Learning Activities

  1. Use this search box to refine and expand your understanding of new terms and concepts in the reading assignments.

Custom Search
  1. offiste01.jpg (430 bytes) Visit the Workshop: Watching the Clock.
  2. offiste01.jpg (430 bytes) Read the Summary of the lesson.
  3. offiste01.jpg (430 bytes) Test your understanding with the Q&A.
  4. offiste01.jpg (430 bytes) Try the Quiz.
  5. offiste01.jpg (430 bytes) Test your skills with the hands-on Activities.
    Return here after completing your hands-on  session.

Web design and curriculum: David L. Heiserman

Copyright © 2005 SweetHaven Publishing Services
All Rights Reserved