Sams Teach Yourself Java 2 in 24 Hours

Sams Teach Yourself Java 2 in 24 Hours

By Rogers Cadenhead

Testing a Condition

Whenever a Java program makes a decision, it does so by employing a conditional statement. During this hour, you'll be checking the condition of several things in your Java programs using the conditional statements if, else, switch, case, and break. You will also be using several conditional operators: ==, !=, <, >, and ?, along with boolean variables.

Share ThisShare This

Informit Network