Java if else

The if-else statement is one of the widely used control flow statements while programming.

Ads

Java if else

     

The if-else statement is one of the widely used control flow statements while programming. It lets the program execute a set of statements enclosed within the "if" block only if the certain condition evaluates to true otherwise program executes statements of "else" block. So it provides the facility to the programmer to handle the condition based programming.

Syntax for if-else:

if (booleanexpression)
{
/*Statements*/
}
else{
/*Statements*/
}

Read more at:

http:/www.roseindia.net/java/beginners/IfElse.shtml

 

Advertisements

Share on Google+Share on Google+

Java if else

Posted on: December 18, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

Ads
 

Discuss: Java if else  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:1
amandeep
November 8, 2011
hiiiiiiiiii

nice............

Ads

 

Ads