int age = 30; if(age >= 30 && age <= 80){ System.out.println("Old"); }else if(age < 30 && >= 1){ System.out.println("Young"); }else{ System.out.println("Not Supported"); }