Share on Google+Share on Google+

Java if else

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

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

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

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Java if else  

Post your Comment


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

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