O'Reilly logo

Sams Teach Yourself Java in 24 Hours, Eighth Edition by Rogers Cadenhead

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

HOUR 7Using Conditional Tests to Make Decisions

This Hour’s To-Do List:

Image Use the if statement for basic conditional tests.

Image Test whether one value is greater than or less than another.

Image Test whether two values are equal or unequal.

Image Use else statements as the opposite of if statements.

Chain several conditional tests together.

Use the switch statement ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required