Monday, May 4, 2009

Conditional Execution and Comments

In real life we often need to make decisions based on a yes/no question. Depending on the outcome we go either this way or another. In Java the control structure of the if-else statement and of the if-else-if statement help us to handle those situations in computer applications. Based on a condition the program continues either with one part or with another another.
For details watch the presentation:


In the lab we will work on and improve the Car class.

Homework
Answer the review questions about conditional execution and comments.

No comments: