If Statement

If Statement in Java

public class Demo {
public static void main(String args[]){

int sum = 10;

if(sum < 20){
System.out.println(“This is true”);
} else {
System.out.println(“This is false”);
}

}
}

 

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.