Online Java Compiler By
JavaTpoint.com
public class IfExample { public static void main(String[] args) { int age=20; if(age>18){ System.out.print("Age is greater than 18"); } } }
Output