Hour 7. Using 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 ...

Get Java™ in 24 Hours, Sams Teach Yourself (Covering Java 8), Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.