If-Else Example
public class IfElseDemo {
public static void main(String[] args) {
int a = 5;
if (a == 5) {
System.out.println("Inside if");
} else {
System.out.println("Inside else");
}
}
}
Output:
Inside if