next up previous
Next: Conditional statements Up: Unit 05 Previous: Summary

Statements in Java

Till now we have seen two types of executable statements (without counting declarations):

These are simple statements by means of which we can write programs

Very often, when we have to solve a problem, we are interested in performing different actions depending on whether certain conditions are true or false.


next up previous
Next: Conditional statements Up: Unit 05 Previous: Summary