Write a java program with if-else statement?
Overview If-else statement is a conditional statement. If the expression is true, then the true block is executed and if the expression is false, then the else block is executed. Let’s write a simple java program making use of the if-else statement. Java Program import java.util.Scanner; //******************************** //IfElseDemo.java //******************************** public class IfElseDemo { public static […]