Thursday, March 12, 2015

If Else statement in java programe



If Else statement

public class SimpleIfElseStatementExample
 {
public static void main(String[] args)
{
int i = 0;       
if(i == 0)
System.out.println("i is 0");
else
System.out.println("i is not 0");
    }
}

No comments:

Post a Comment