Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Writing Code Using if statement
IF statement is basscially using for the true and false result .here we have a normal formate : 
if (booleanExpression) {
System.out.println("Inside if statement");
}
         In this expression we are checking True and false .The following code demonstrates a legal if
statement:
if (x > 3) {
System.out.println("x is greater than 3");
} else {
System.out.println("x is not greater than 3");
}
       Else opton is not mendetory .thatsy we also wrint in this term ..........
if (x > 3) {
y = 2;
}
z += 8;
a = y + x;
Posted By: Name:Rajesh Kr URL: Writing Code Using if statement