Saturday, October 24, 2009

How to use if statement in java

Flow control in java is a key part as these are widely used in source code of any of the programs that are written in Java. In java, flow controls include if statement , switch statement, loops like for, while, do - while loop. These flow controls are described as following with it syntax and sample of source code.

These are oftenly called as decision statements. This is because whenever you use decision statements, you need to provide some mathematical expression that gets executed and decide which sort of action is to be taken.


if u wanna read about this article click on the link below :




No comments:

Post a Comment