/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaexer1; /** * * @author Student */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { int age; age=17; if (age < 18){ System.out.println("You're young- enjoy it"); }else{ System.out.println("You're not under 18"); } if ((age>=18) && (age<50)){ System.out.println("You're in the prime of your life"); }else{ System.out.println("You're not in the prime of you're life\n"); } if (age>=50){ System.out.println("You can retire soon-hoorah!"); }else{ System.out.println("You cannot retire soon:("); } } }