Home : Tutorials : Java Tutorial


Revised 9/26/98; 08/01/99; 12/09/99; 01/18/99

CHAPTER 12 — Decision Making

This chapter looks at how computer programs make decisions about numbers and variables using the if statement. This statement is one of the fundamental building blocks used in creating large programs.

Chapter Topics:

  • Two-way Decisions.
  • Java if statement.
  • Outline of a two-way decision.
  • Blocks of statements.
  • Boolean Expressions.
  • Relational Operators.
  • Example Programs.

QUESTION 1:

You are driving in your car and it starts to rain. The rain falls on your windshield and makes it hard to see. Should your windshield wipers be on or off?


Home : Tutorials : Java Tutorial

 

Copyright© 1998-2004 All Rights Reserved. No portion of this site may be reproduced or redistributed without prior written permission from VistaEdge Technologies

All registered trademarks appearing on this site are the property of their respective owners. Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries. This site is not connected to Sun Microsystems, Inc. and is not sponsored by Sun Microsystems, Inc.