Learn C language

Easy to learn C language tutorials

Learn C++ language

Easy to learn C++ language tutorials

Learn Core Java language

Easy to learn Java language tutorials

Learn HTML

Easy to learn HTML tutorials

Learn CSS

Easy to learn CSS tutorials

Learn ASP.NET

Easy to learn ASP.NET tutorials

Showing posts with label how to use if else in java. Show all posts
Showing posts with label how to use if else in java. Show all posts

Sunday, August 11, 2013

[PART-6] JAVA : if else statement

if else statements are condition statements.
These are used to give conditions.

Syntax:
1.)   if( any condition )
      { Statement };


2.) if( any condition )
     { Statement };
     else
     { Statement };

3.)if(any condition)
    { Statement };
    else if(any condition)
    { Statement };
    else
    { Statement };





Eaxamples :

if


if-else


if - else if - else